Skip to main content

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-2.0-flash"),
    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

ParameterTypeDefaultDescription
enable_open_pageboolTrueEnables functionality to open URLs in browser
allboolFalseEnables all functionality when set to True

Toolkit Functions

FunctionDescription
open_pageOpens a URL in a web browser