Cancel Work
cancel_workStop the work, or with task_id one task it delegated, and nothing else. Accepted provider calls may still settle; a stop is not an automatic refund. Tasks the work delegated keep running and stay in get_work, where each can be stopped.
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": {
"work_id": "<work_id>",
"expected_revision": "<expected_revision>",
"request_key": "<request_key>"
},
"name": "cancel_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | No | What happens to the media this work is generating. cancel stops its generation queue; keep lets it finish and lists it in tasks. Ask the creator which they want. When omitted, media is cancelled. | |
| task_id | No | Stop only this task or kept media job from the work's tasks list. Omit to stop the work itself, which never stops its tasks. | |
| work_id | Yes | Opaque authorized product identifier; never proof of access. | |
| request_key | Yes | Stable caller request key; reuse unchanged after a lost response. | |
| expected_revision | Yes | Exact current Work revision returned by Genflick. Stops future descendants where possible; accepted provider work may still settle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||