session_send
Send text, control characters (like Ctrl-C), or special keys (arrow keys, F-keys) to an active terminal session. Issue commands, interrupt processes, or navigate TUI apps by specifying input, key, or control_char.
Instructions
Send input text, a control character, or a special key to an active session. Use control_char for signals (e.g. 'c' for Ctrl-C). Use key for special keys (e.g. 'up', 'tab', 'f1').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Special key to send (arrow keys, function keys, etc.) | |
| input | No | Text to send to the session | |
| password | No | Password or secret to send (will not be logged) | |
| confirmed | No | Set to true to bypass dangerous command gate | |
| session_id | Yes | Session ID returned by session_create | |
| press_enter | No | Append carriage return after input | |
| control_char | No | Control character to send: 'c' (SIGINT), 'd' (EOF), 'z' (SIGTSTP), 'l' (clear), ']' (telnet) |