Cancel agent
agents_cancelStops the agent's current turn: cancels its unfinished tool calls and open interactions, stops processes whose run_command hasn't returned yet, and discards pending steering messages. The agent stays active and keeps its queued messages, and processes whose run_command already returned keep running. Returns affected false and changes nothing when no turn is in progress.
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": {
"agentID": "<agentID>",
"orgID": "<orgID>",
"projectID": "<projectID>"
},
"name": "agents_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | No | External actor to attribute this cancelation to, upserted by (provider_tenant_id, provider_user_id) atomically with the cancelation; a rejected request writes no actor. Only allowed for non-user principals; requests authenticated as a user must omit it and are attributed to the user's omnara actor. | |
| orgID | Yes | Organization ID (org_...). | |
| agentID | Yes | Agent ID (agt_...). | |
| projectID | Yes | Project ID (proj_...). |