Example
cookbook/14_tools/webbrowser_tools.py
from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.hackernews import HackerNewsTools
from agno.tools.webbrowser import WebBrowserTools
agent = Agent(
model=Gemini("gemini-flash-latest"),
tools=[WebBrowserTools(), HackerNewsTools()],
instructions=[
"Find related articles using HackerNews",
"Use web browser to open the site",
],
markdown=True,
)
agent.print_response("Find an article explaining MCP and open it in the web browser.")
Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
enable_open_page | bool | True | Enables functionality to open URLs in browser |
all | bool | False | Enables all functionality when set to True |
Toolkit Functions
| Function | Description |
|---|---|
open_page | Opens a URL in a web browser |