Safely Cancel a Managed ZCode Worker Task
zcode_cancelCancels a managed task by terminating verified worker/app-server processes—guarding against Windows PID reuse—and releasing the workspace lock.
Instructions
Terminate verified worker/app-server processes (strictly guarding against Windows PID reuse) and release the workspace lock.
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": "zcode_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional cancellation reason recorded in task history. | Cancelled by caller |
| task_id | Yes | Managed task_id to cancel. |