Cancel job
job_cancelRequest cooperative cancellation when an open job should stop. Work stops at a checkpoint and may still complete; cancellation is rejected for terminal jobs or once result publication starts. Compute already used is still accounted for. Returns current status and cancelRequested/cancelAccepted, not proof of cancellation; poll job_get or job_wait for the terminal state. Use jobs_list to locate a job or job_report for detailed results.
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": {
"jobId": "<jobId>"
},
"name": "job_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | Durable job ID returned when an asynchronous operation is queued. | |
| reason | No | Optional reason recorded when cancelling the job. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | Durable job ID returned when an asynchronous operation is queued. | |
| status | Yes | ||
| cancelAccepted | Yes | ||
| cancelRequested | Yes |