send_control
Send control characters like ctrl-c to a specific iTerm2 session to interrupt runaway processes, end stdin, or clear the screen.
Instructions
PREFER SendMessage when you want another Claude Code session to stop, change course, or do something else — interrupting it by keystroke races whatever it is doing and discards its in-flight work, where a message is delivered cleanly at its next turn. Reach for send_control for genuine terminal control: killing a runaway process, ending stdin, clearing a screen. Send a control character (e.g. ctrl-c to interrupt) to a specific iTerm2 session.
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_id": "<session_id>",
"character": "<character>"
},
"name": "send_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| character | Yes | Control character to send | |
| session_id | Yes | The unique session ID (UUID) from list_sessions |