send_control
Send a control character (Ctrl+C, Ctrl+D, Ctrl+Z, Ctrl+L, or ESC) to an active terminal session to interrupt, terminate, suspend, clear, or escape, then wait for the terminal to become idle before returning.
Instructions
Send a control character to the terminal.
Requires an existing session created via create_session(session_id, cwd).
Keys:
csends Ctrl+C, commonly used to interrupt.dsends Ctrl+D (EOF in many programs).zsends Ctrl+Z (job control suspend).lsends Ctrl+L (clear screen in many shells).[orescapesends ESC.
After sending the control character, this drains newly produced PTY bytes
until the PTY is silent for PILOTY_QUIESCENCE_MS (default 1000ms) or until
deadline_s expires.
deadline_s must be at most 300 seconds.
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>",
"key": "<key>"
},
"name": "send_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| deadline_s | No | Total wall-clock budget in seconds. Must be between 0 and 300. | |
| session_id | Yes |