Agent Tool
Purpose
Offload work to a separate sub-agent for complex tasks
Description
The Agent tool allows you to delegate specific tasks to autonomous sub-agents that can work independently to solve complex problems. This enables parallel processing and specialized workflows.
Key Features
- Launch multiple concurrent agents for maximum performance
- Each agent is stateless and autonomous
- Supports custom tool selection
- Returns structured results from tool execution
Default Tools Available to Sub-Agents
bash- Command line executionfileTools- File system operationssearch- EXA search functionalitysearchInternet- Web search with summarizationgenerateImage- AI image generationreadWebpage- Web content extraction
Parameters
- request (string): The detailed task description for the sub-agent
- availableTools (array, optional): Custom list of tools to provide to the sub-agent
Usage Notes
- Launch multiple agents concurrently whenever possible for maximum performance
- Each agent invocation is stateless - provide complete context in the request
- Specify exactly what information the agent should return
- Use custom tools via the
availableToolsparameter for specialized capabilities - Call
getAllAvailableToolsfirst to see all available tools
Use Cases
- Complex multi-step tasks requiring autonomous execution
- Parallel processing of independent workstreams
- Specialized workflows requiring specific tool combinations
- Offloading research and analysis tasks
Implementation
- Built on OpenRouter with configurable AI models
- Supports up to 50 execution steps per agent
- Automatic usage tracking and billing
- Real-time streaming of agent progress
- Firebase integration for result storage