Skip to main content
Glama

tmux_capture_pane

Capture the visible text from a tmux pane to retrieve its current output. Use session ID, line ranges, and ANSI options to control captured content.

Instructions

Capture the current pane contents as text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ansiNoInclude escape sequences (tmux -e).
joinNoJoin wrapped lines (tmux -J).
end_lineNoEnd line for capture (-E). Negative values count from bottom.
alternateNoCapture alternate screen (-a). Default false.
session_idYes
start_lineNoStart line for capture (-S). Negative values count from bottom.
strip_ansiNoStrip ANSI/VT100 sequences from returned text.
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description carries the full burden of behavioral disclosure. It does not mention key behaviors such as line range handling (start_line, end_line), ANSI inclusion/stripping, or whether the capture is read-only. The phrase 'as text' hints at output format but fails to disclose how parameters affect the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with no wasted words. However, it is so terse that it borders on under-specification, though this is not a padding issue.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 7 parameters, no annotations, and no output schema, a one-sentence description is insufficient. It does not explain the capture scope (e.g., which pane, what the current pane refers to), line range options, or the meaning of the return value. The tool requires more context for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 86% (high), so the baseline is 3. The description adds no parameter-level meaning beyond what the schema already provides, so it neither helps nor hurts.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb+resource: 'Capture the current pane contents as text' explicitly states what the tool does and distinguishes it from siblings like send/read. The output type (text) is also specified.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like send or read. The description is a single declarative sentence with no context for selecting this tool over others.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/SammySnake-d/proc-repl-mcp'

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