cancel
Stop the active turn for a specified session and return status until the agent confirms or is idle.
Instructions
Cancel the current turn. Returns "cancelling" until the agent confirms, or "done" when already idle.
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": {
"session": "<session>"
},
"name": "cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Session id returned by open |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes |