Skip to main content
Glama

Tmux MCP Server

tmux_capture_pane

Capture visible content or scrollback text from tmux terminal panes for debugging, monitoring, or logging purposes. Specify session name and optional line count to retrieve terminal output.

Instructions

Capture the visible content of a tmux pane. Returns the text currently displayed in the pane.

Input Schema

NameRequiredDescriptionDefault
session_nameYesName of the tmux session
pane_indexNoPane index (default: 0 for main pane)
linesNoNumber of lines to capture from scrollback (default: captures visible area, use -1 for entire scrollback)

Input Schema (JSON Schema)

{ "properties": { "lines": { "description": "Number of lines to capture from scrollback (default: captures visible area, use -1 for entire scrollback)", "type": "number" }, "pane_index": { "description": "Pane index (default: 0 for main pane)", "type": "string" }, "session_name": { "description": "Name of the tmux session", "type": "string" } }, "required": [ "session_name" ], "type": "object" }

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/MediocreTriumph/tmux-mcp'

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