cursor_cancel
Cancels an active run on a Cursor Cloud Agent, returning its post-cancel state. Cancellation is terminal (send a follow-up to start a new run) and does not archive the agent.
Instructions
Cancel the active run. Cancellation is terminal — to continue the conversation, send a follow-up (which starts a new run on the same agent). Does not archive the agent. Returns the run's actual post-cancel state.
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": "cursor_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| agent_id | Yes |