cancel
Stop an in-flight Cursor turn for a sessionId, returning status such as killed, not-running, or not-found. Set force to kill the process after a grace period if it remains running.
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. |