Using a Toolkit
Agno provides many pre-built toolkits that you can add to your Agents. For example, let’s use the DuckDuckGo toolkit to search the web.You can find more toolkits in the Toolkits guide.
1
Create Web Search Agent
Create a file
web_search.py
web_search.py
2
Run the agent
Install librariesRun the agent
Writing your own Tools
For more control, write your own python functions and add them as tools to an Agent. For example, here’s how to add aget_top_hackernews_stories
tool to an Agent.
hn_agent.py
Accessing built-in parameters in tools
You can access agent attributes likesession_state
, dependencies
, agent
and team
in your tools.
For example:
MCP Tools
Agno supports Model Context Protocol (MCP) tools. The general syntax is:Learn more about MCP tools in the MCP tools guide.
Developer Resources
- View the Agent schema
- View the Knowledge schema
- View Cookbook