cancel
Stop an in-flight Cursor turn by sessionId, optionally force-killing the process after a grace period, and report whether it stopped, was killed, ended, or was not found.
Instructions
Cancel an in-flight Cursor turn by sessionId. Status is cancelled, killed, not-running (the turn ended and the session can still be resumed), or not-found.
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": {
"sessionId": "<sessionId>"
},
"name": "cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | After a short grace period, kill the Cursor process if the turn is still running. | |
| sessionId | Yes | Session id returned by delegate. |