Update pending task
update_taskEdit a pending ad-hoc task's title, brief, dependencies, dependency mode, or pinned worker settings before it is claimed, and pass expectedEditCount to avoid overwriting concurrent edits.
Instructions
Edit an ad-hoc task that is still pending (including one waiting on dependencies): its title, brief, dependencies, dependency mode, or pinned harness/model/effort. Refused once the worker has claimed it. Pass expectedEditCount (editCount from get_task) so an edit made meanwhile is not overwritten. Same as devintern worker task update.
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": {
"taskKey": "<taskKey>"
},
"name": "update_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Replacement brief (at most 20000 characters) | |
| after | No | Task keys to add as dependencies | |
| model | No | ||
| title | No | ||
| effort | No | ||
| harness | No | ||
| taskKey | Yes | Ad-hoc task key (`local-…`), from get_queue | |
| clearAfter | No | Drop every dependency first | |
| removeAfter | No | Dependencies to remove | |
| dependencyMode | No | stacked: once a same-repo dependency succeeded, branch from its branch and open this PR against it; the worker retargets and rebases the PR after the dependency merges. merged: wait for the dependency's PR to merge. Default: the workspace's [defaults].dependency_mode | |
| expectedEditCount | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| outcome | No | ||
| taskKey | No | ||
| errorCode | No | Set on failure: stable error code | |
| nextSteps | No | Set on failure: steps to run next (`command` runs on the worker host) |