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.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.
To access session data, like
session_state and dependencies, you will use the run_context object.
See the RunContext schema for more information.MCP Tools
Agno supports Model Context Protocol (MCP) tools. The general syntax is:Developer Resources
- View the Agent schema
- View the Knowledge schema
- View Cookbook