delegate
Runs a task on a worker in a specified workdir, verifies output with declared checks, and returns structured results; agent mode produces code patches from a private copy.
Instructions
Run a task on a worker in the absolute workdir, verified by checks. wait=False: then collect. agent=True: a local agent changes code in a private copy and returns a patch; one change per item of steps, what they share in task.
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": "<task>",
"workdir": "<workdir>"
},
"name": "delegate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| wait | No | ||
| agent | No | ||
| steps | No | ||
| checks | No | ||
| backend | No | ||
| profile | No | helper | |
| workdir | Yes | ||
| max_turns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | ||
| answer | No | ||
| checks | No | ||
| run_id | Yes | ||
| status | Yes | ||
| files_written | No |