Send Control Character
send_control_characterSend a real Ctrl+ control byte directly into a specific terminal session to interrupt a running command (e.g., Ctrl+C) without affecting other processes.
Instructions
Sends a real Ctrl+ control byte (e.g. Ctrl+C to interrupt) directly into a session's own shell input.
This writes the literal ASCII control byte straight into this one session's input pipe - it physically cannot reach any other process on the machine, since there is no keyboard/focus involved at all.
Args:
session (string): which session (default "default")
key (string): "C" (default) or any other letter for Ctrl+
Ctrl+Break is not supported - there is no ASCII control byte for it over this transport. Use "C" to interrupt a running command.
Reliably interrupts a command that is actually running. It is not a reliable way to cancel text already typed into the prompt but not yet submitted (pressEnter:false) - PowerShell's line editor needs Ctrl+C delivered as its own keypress to cancel an in-progress edit, which this transport does not guarantee. To discard an unsent fragment, close and reopen the session instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "send_control_character"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Letter for Ctrl+<key> (e.g. "C" for Ctrl+C to interrupt, "Z" for Ctrl+Z / EOF). | C |
| session | No | Session to send the key to. | default |