Delegate To Agent
delegate_to_agentDelegate a task to a remote A2A-compliant agent: discover its capabilities via its agent card, send it a message, handle payment, and return the result. Use only when no local platform tool can fulfil the request.
Use when: Use when a task requires specialist capabilities beyond the local tool set. Call discover_agents first when the remote agent URL is unknown. Do not retry unchanged after error_type=advertised_price_exceeds_cap; pick another result or adjust the cap.
Limitations: Requires an allowlisted remote URL and sufficient delegation budget; the remote agent's price and capability claims are read from its card and are not independently verified. Involves real payment.
Alternatives: discover_agents, web_search
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_url | Yes | Base URL of the remote A2A agent (e.g. https://agent.example.com) | |
| task_type | No | Broad task class for routing telemetry; never include user data or task text. | general |
| task_description | Yes | Natural language description of the task to delegate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message, if any | |
| result | Yes | Text result extracted from the remote agent's response | |
| status | Yes | A2A task state: completed, failed, etc. | |
| cost_usdc | No | Cost of this delegation in atomic USDC | |
| agent_name | Yes | Name of the remote agent (from its agent card) | |
| error_type | No | Stable error type for delegation failures that require planner recovery. |