cancel_queued_job
Cancel a waiting print job in the queue by marking it cancelled without contacting a printer; use only for jobs still queued, not those already printing.
Instructions
Remove one job from the print queue while it is still WAITING.
Queue bookkeeping only: this marks the row cancelled and never sends
anything to a printer. To STOP a job the machine has already
started, use ``cancel_print`` — that is the tool that talks to the
hardware.
Args:
job_id: The job ID to cancel.
Only a job still in the QUEUED state can be cancelled here. A job
that has reached the machine (starting, printing, or paused) is
refused with ``code="PRINT_IN_PROGRESS"`` rather than cancelled,
because marking the row cancelled would leave the queue claiming a
print had stopped while the printer carried on running it.
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": {
"job_id": "<job_id>"
},
"name": "cancel_queued_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job ID to cancel. |