send_keys
Send raw keystrokes to a specified SSH session using tmux notation, enabling interactive input, interrupts (Ctrl+C), EOF, and special keys without hitting Enter.
Instructions
Send raw keystrokes to a session without appending Enter.
Use this for:
Interrupting commands: keys="C-c" (Ctrl+C)
Sending EOF: keys="C-d" (Ctrl+D)
Interactive input: keys="yes" (without submitting)
Special keys: keys="Enter", keys="Tab", keys="BSpace"
Tmux key notation: C-x (Ctrl), M-x (Alt), S-x (Shift). Multiple keys: "C-c Enter" After sending keys, use get_snapshot() to see the result.
Args: session_id: The ID of the session (format: user@host-). keys: Keys to send using tmux notation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |