session_interrupt
Interrupt a running Claude Code session to stop its current turn while keeping the session active. Sends Escape to leave the busy state, with Ctrl-C fallback, enabling redirection.
Instructions
Stop the current turn without killing the session.
Sends Escape (Claude Code's own interrupt), verifies the session left the
busy state, and only falls back to Ctrl-C if Escape did not take. Follow up
with session_send to redirect.
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": {
"name": "<name>"
},
"name": "session_interrupt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |