oc_task_cancel
Cancel a running background task by providing its task ID. Pending tasks transition to cancelled; terminal tasks remain unaffected.
Instructions
Request cancellation of a background task. Best-effort: the runner aborts the underlying tool at the next work-unit boundary. Terminal tasks are unaffected. PENDING tasks transition straight to CANCELLED.
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_id": "<task_id>"
},
"name": "oc_task_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | REQUIRED task_id returned by oc_task_start. |