Cancel run
cancel_runStop a run that is queued or in progress. Nothing is charged for an incomplete run.
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": {
"run_id": "<run_id>"
},
"name": "cancel_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run to stop (from start_run or list_runs). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Customer-visible state after the request. | |
| run_id | Yes | ||
| cancel_requested | Yes | true once the stop has been recorded; a run in progress stops at its next step. |