shell_snapshot
Get rendered terminal screen + cursor position (PTY only)
How to use it
shell_snapshot is exposed by the Terminal MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the shell_snapshot tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Terminal MCP
cargo install terminal-mcpOther tools in Terminal MCP (16)
One-shot command execution, process exits after completion
Close a single session
Close all sessions
Get current cursor position (PTY only)
Check if a tag exists
List all sessions with PTY status/size and truncation info
Move cursor to absolute 1-based position via ANSI CUP (PTY only)
Read buffered stdout/stderr, with optional ANSI stripping
Kill and restart a session
Dynamically resize PTY window without losing state (PTY only)
Send raw bytes, no newline
Send terminal control character (^C, ^D, ^Z, DEL)
Send special keys/text burst (arrows, Enter, Escape, F-keys, etc.)
Send command + newline (most common)
Create an interactive session (pipe or PTY mode)
Wait until pattern appears in output (with timeout), with optional ANSI stripping applied before matching