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 execution
  • fileTools - File system operations
  • search - EXA search functionality
  • searchInternet - Web search with summarization
  • generateImage - AI image generation
  • readWebpage - 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

  1. Launch multiple agents concurrently whenever possible for maximum performance
  2. Each agent invocation is stateless - provide complete context in the request
  3. Specify exactly what information the agent should return
  4. Use custom tools via the availableTools parameter for specialized capabilities
  5. Call getAllAvailableTools first 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