Cancel Agent Run
cancel_agent_runCancel one run in progress, for example a reply the agent is still working on. Work it handed to other agents is cancelled with it. Take run_id from list_agent_activity or get_agent_task.
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": {
"agent_id": "<agent_id>",
"run_id": "<run_id>"
},
"name": "cancel_agent_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional reason, kept with the record. | |
| run_id | Yes | ||
| agent_id | Yes | The agent id, from list_agents. |