Cancel governed Agent run
cancel_agent_runCancel a queued or running agent execution and close its run history. Completed, failed, or already-canceled runs remain unchanged.
Instructions
Stop one queued or running Agent execution and close its durable run history. Completed, failed, stalled, and already-canceled runs keep their terminal truth.
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": {
"project_id": "<project_id>",
"agent_id": "<agent_id>",
"run_id": "<run_id>",
"job_id": "<job_id>"
},
"name": "cancel_agent_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Agent job ID returned by run_project_agent. | |
| run_id | Yes | Agent run ID returned by run_project_agent. | |
| agent_id | Yes | Agent that owns the run. | |
| project_id | Yes | Project the Agent run belongs to. |