MCP server (recommended)
The fastest path is to point your agent at the install guide. It will configure itself:andi_web_search and andi_fetch_url. Your agent can search the web and then fetch full page content from any result. See Build with AI agents for setup snippets for Cursor, VS Code, Codex, and other clients.
Tool definition (custom frameworks)
If your agent framework uses function/tool definitions instead of MCP, define the search tool with parameters and expected output:Tool execution
When the agent calls the tool, execute the search and return results:Search then fetch workflow
An agent can search for results, then fetch full content from the most relevant page. This example pinssearchMode=deep so every call gets broad coverage before the fetch — omit it to let auto decide per query:
Putting it together
Here’s how the tool fits into an agent loop:Using format=context for agents
For agents that pass search results directly into conversation context, format=context returns pre-formatted markdown:
Next steps
Build with AI agents
MCP server setup for Claude Code, Cursor, and more.
Content retrieval
Full fetch endpoint reference.
Search modes
Automatic effort by default, manual control when you want it.
Error handling
Error codes and retry strategies.

