Prerequisites
The following example requires thegoogle-genai and ddgs libraries.
Example
cookbook/91_tools/webbrowser_tools.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
WebBrowser Tools enable an Agent to open a URL in a web browser.
google-genai and ddgs libraries.
uv pip install -U google-genai ddgs
from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.webbrowser import WebBrowserTools
from agno.tools.websearch import WebSearchTools
agent = Agent(
model=Gemini("gemini-2.0-flash"),
tools=[WebBrowserTools(enable_open_page=True), WebSearchTools()],
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.")
| 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 |
| Function | Description |
|---|---|
open_page | Opens a URL in a web browser |
Was this page helpful?