dispatch
Send a subtask to a code agent worker and receive a job ID for asynchronous result retrieval.
Instructions
Dispatch a subtask to a code agent worker (opencode|codex|claude). Returns {job_id}.
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": {
"prompt": "<prompt>",
"agent": "<agent>",
"cwd": "<cwd>"
},
"name": "dispatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| agent | Yes | ||
| prompt | Yes | ||
| timeout_ms | No | ||
| context_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||