cookbook/tools/webbrowser_tools.py
from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.webbrowser import WebBrowserTools
agent = Agent(
model=Gemini("gemini-2.0-flash"),
tools=[WebBrowserTools(), DuckDuckGoTools()],
instructions=[
"Find related websites and pages using DuckDuckGo"
"Use web browser to open the site"
],
markdown=True,
)
agent.print_response("Find an article explaining MCP and open it in the web browser.")