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.
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 |