session_stop
Stops or removes a queued or running Claude Code CLI session, applying graceful interrupt/terminate signals or forced termination when needed.
Instructions
Stop a run (graceful: SIGINT, then SIGTERM, then SIGKILL) or remove it from the queue.
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": {
"bot": "<bot>",
"run_id": "<run_id>"
},
"name": "session_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | Yes | Your bot name (attribution). | |
| mode | No | graceful | |
| reason | No | ||
| run_id | Yes | ||
| cross_bot | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||