delegate
Assign a coding task to Claude Code or Codex and retrieve the final output. Use this to pass work between agents.
Instructions
Delegate a task to another coding agent (Claude Code or Codex) and return its final output. Use this to hand work to the other agent.
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": {
"target": "<target>",
"task": "<task>"
},
"name": "delegate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the target agent | |
| task | Yes | The task prompt for the target agent | |
| target | Yes | Which agent to delegate to | |
| timeoutMs | No | Max wait for the target agent in milliseconds (default 120000) |