create_handoff_for_agent
Generate a LangGraph-compatible handoff payload to transfer a task between agents, including required context and optional token budget and failure history.
Instructions
Create a LangGraph-compatible handoff payload for agent-to-agent transfer
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": {
"task_id": "<task_id>",
"from_agent": "<from_agent>",
"to_agent": "<to_agent>"
},
"name": "create_handoff_for_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task ID being handed off | |
| to_agent | Yes | Actor ID of target agent | |
| from_agent | Yes | Actor ID of source agent | |
| budget_tokens | No | Token budget for context (default: 500) | |
| include_retex | No | Include relevant RETEX (default: true) | |
| include_failures | No | Include recent failures (default: true) |