Cancel task
cancel_taskCancel an ad-hoc DevIntern task to withdraw a pending job or stop a running agent by task key, keeping its branch for later resume. Use when a queued or active task is no longer needed.
Instructions
Cancel an ad-hoc task. A pending task is withdrawn. A running task's agent is stopped by the worker (SIGTERM, then SIGKILL after a grace period) and its branch is kept, so it can be resumed later. Returns cancelling when the stop is still in progress. Same as devintern worker cancel.
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": "cancel_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why, recorded on the task | |
| taskKey | Yes | Ad-hoc task key (`local-…`), from get_queue |
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) |