Skip to main content
Glama

send_keys

Simulate keyboard input in terminal applications by sending keystrokes, special keys, and shortcuts for automation and testing purposes.

Instructions

Send keystrokes to the TUI app. Use this for special keys and shortcuts, not for typing text (use send_text for that). Accepts a single key descriptor string or an array of key descriptors to send in sequence. Supports named keys (Enter, Tab, Escape, Up, Down, Left, Right, Backspace, Delete, Home, End, PageUp, PageDown, F1-F12, Space) and modifiers (Ctrl+, Alt+, Shift+). Examples: "Enter", "Ctrl+C", ["Down", "Down", "Down", "Enter"], ["Escape", ":wq", "Enter"].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID
keysYesKey descriptor or array of key descriptors (e.g. "Enter", "Ctrl+C", ["Down", "Down", "Enter"])

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nvms/tui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server