cancel_job
Cancel a pending or running agent job. Sets the job status to "cancelled". Use when the user asks to stop / abort / kill an in-progress job (e.g. "stop generating", "cancel the video render"). Resolve the jobId from list_running_jobs first if the user didn't supply one. Already-completed or already-failed jobs cannot be cancelled — the call returns an error in that case. CHARGE RULE for scene videos: once a render or one of its parts is charged its credits are spent, and cancelling does NOT refund them. In that case the first call never cancels: it answers needsConfirmation with the credits at stake and the parts already made (they stay). In the Promvie studio chat the server shows the user this question in its own words and does it only on their plain yes: never ask it yourself, never say it was done, and never call again with the confirm flag there. Through the API, tell your user exactly what is lost and, only after they agree in a later message, call again with the confirm flag and the confirmId it gave. A job nothing was charged for yet is cancelled at once. Never cancel a scene video merely to change its length or shots; let it finish, then regenerate.
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": {
"movieId": "<movieId>",
"jobId": "<jobId>"
},
"name": "cancel_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | agent_jobs.id of the job to cancel. | |
| movieId | Yes | The movie id (uuid) this call operates on. Get it from create_movie or list_movies. | |
| confirmId | No | Through the API: the confirmId from the needsConfirmation answer, sent back with confirmChargedRender. It confirms that one question, once. | |
| confirmChargedRender | No | Through the API only. Leave unset on the first call. Set true ONLY after this tool answered needsConfirmation (the render is already paid for) and your user agreed to lose those credits in a later message, in a separate later call that also sends the confirmId. In the studio chat the server answers the question itself: never set it there. |