agentlens_delegate
Delegate tasks to specific agents discovered in the AgentLens network for distributed task execution.
Instructions
Delegate a task to another agent in the AgentLens network.
When to use: When you've discovered an agent capable of handling a specific task (via agentlens_discover) and want to delegate work to it.
Example: agentlens_delegate({ action: "delegate", targetAgentId: "anon-abc123", taskType: "translation", input: { text: "Hello", targetLang: "es" } })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Operation to perform: delegate | |
| targetAgentId | Yes | Anonymous agent ID (from discovery results) | |
| taskType | Yes | Task type to delegate | |
| input | Yes | Input data for the delegated task | |
| fallbackEnabled | No | Enable fallback to alternative agents on failure (default: false) | |
| maxRetries | No | Maximum retry attempts with alternative agents (default: 3, max: 10) | |
| timeoutMs | No | Timeout in milliseconds (default: 30000) |