Cancel agent run
cancel_agent_runCancel one live AI agent run: the run and its session flip to 'cancelled' and the runner interrupts the in-flight turn within seconds, without pausing the agent itself. Organisation admins only. Use when an agent run is working on something it should not (a closed ticket, a wrong assumption, a runaway investigation). Identify the run by run_id from list_agent_runs; already-finished runs answer with their final status.
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_agent_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run UUID to cancel. |