Skip to main content
Glama
ketema

tmux-shell

by ketema

read_tmux_pane

Read the content of a tmux pane on demand, allowing AI agents to assist with context-aware tasks during interactive terminal sessions.

Instructions

Reads the content of a tmux pane. This enables AI agents to see what is currently displayed in the terminal, providing context-aware assistance during interactive sessions (e.g., git rebase, vim, conflict resolution). The agent only reads the pane when explicitly invoked - there is no background monitoring.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNoOptional tmux target pane in format "session:window.pane" (e.g., "work:1.0"). If not specified, uses the current pane. You can get available targets using list_tmux_sessions.
end_lineNoOptional ending line number. Use -1 for the last line. If not specified, reads to the end of the visible area.
start_lineNoOptional starting line number. Use negative numbers for scrollback history (e.g., -100 for last 100 lines). If not specified, reads only the visible area.
include_trailing_spacesNoWhether to preserve trailing spaces on each line. Default is false.
Behavior3/5

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

No annotations are provided, so the description must fully disclose behavior. It correctly states that reading only occurs on explicit invocation and implies a read-only operation. However, it lacks details on potential side effects, performance implications, or error conditions, making it adequate but not thorough.

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

Conciseness5/5

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

The description is three sentences, each adding value: action, use case, and invocation guarantee. It is front-loaded with the primary function and contains no redundant or filler content.

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

Completeness3/5

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

The description covers purpose and usage context well, but with no output schema or annotations, it should clarify the return format (e.g., plain text) and potential errors. The current description is adequate for a simple read tool but lacks completeness.

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 100%, so the schema already documents all parameters. The tool description adds no extra semantic meaning beyond the schema, such as usage tips or interdependencies. Thus, it meets the baseline but does not exceed it.

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?

The description clearly states 'Reads the content of a tmux pane' with a specific verb and resource. It further explains the use case for interactive sessions, and the sibling tool list_tmux_sessions has a distinct purpose (listing sessions, not reading content), so there is no ambiguity.

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

Usage Guidelines4/5

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

The description provides explicit context for when to use (interactive sessions like git rebase, vim, conflict resolution) and states no background monitoring. However, it does not explicitly mention when not to use or alternative tools besides the sibling, though the sibling is not a direct alternative.

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/ketema/tmux-mcp-shell-tool'

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