cancel_job
Cancel queued ComfyUI jobs by prompt ID to clear pending work; only pending jobs are stopped, so use the interrupt tool to stop a running job.
Instructions
Cancel a queued job by prompt ID. NOTE: This only works for jobs that are queued (pending), NOT for jobs that are already running. To stop a running job, use the 'interrupt' tool instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cancel_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promptId | No | Specific prompt ID to cancel. If not provided, cancels all jobs. |