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" } })
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"targetAgentId": "<targetAgentId>",
"taskType": "<taskType>",
"input": "<input>"
},
"name": "agentlens_delegate"
}
}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) |