Cancel a queued, pending or running scan
cancel_scanCancel a queued, pending or running scan (permission: edit)
Removes the pending queue job (best-effort) and marks the scan cancelled; answers the ScanRef with status cancelled. Idempotent: an already cancelled scan answers 200 as well. Any other terminal scan (completed/failed/broken_step/no_data) is refused 409 not_cancellable. Replaces DELETE /scans/{id} (API 1.6.0).
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": {
"id": "<id>"
},
"name": "cancel_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Scan id: the `id` of the ScanRef a scan trigger answered, or of an item of GET /scans. |