send_keys
Send key sequences to a terminal session, including named keys and Ctrl/Alt combinations. Adapts to cursor-key modes for navigating TUI applications.
Instructions
Send key tokens, e.g. ["Down", "Down", "Enter"], ["C-c"], ["M-x"].
Named tokens: Enter, Return, Tab, BackTab, Space, Backspace, Delete, Escape, Esc, Up, Down, Right, Left, Home, End, PageUp, PageDown, Insert, F1-F12. Combos: "C-" or "^" (Ctrl — letters plus @, Space, [, , ]) and "M-" (Meta/Alt, ESC prefix). Any other token is not an error — it is typed as literal text.
Arrow keys adapt to the app's cursor-key mode (SS3 under DECCKM, CSI else), so menu navigation works in curses apps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| keys | Yes |