Skip to main content
Glama

Read pane output

cmux_capture

Read the current terminal screen or scrollback history to inspect output; pass workspace and window refs to capture a surface in another workspace.

Instructions

Read the current screen or scrollback of a terminal surface. Pass workspace/window for a surface in another workspace.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cmux_capture"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoLimit to the last N lines.
windowNoWindow ref like "window:1". Defaults to the caller's window.
surfaceNoSurface ref like "surface:40". Defaults to the current pane.
workspaceNoWorkspace ref like "workspace:26". Defaults to the caller's workspace.
scrollbackNoInclude scrollback history.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.13

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It does disclose the read scope (current screen vs. scrollback history) and the default-to-caller-surface behavior, and 'Read' implies non-mutation. It omits return format, truncation behavior, and what happens if a ref is invalid.

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?

Two short sentences, front-loaded with the core action and followed by the one non-obvious targeting rule. No filler and nothing redundant with the schema.

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?

Five optional parameters, no annotations, and no output schema, so the description is the only place an agent can learn the shape of what comes back. It covers addressing well but not the return value (plain text? line count?) or behavior when nothing is captured.

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 baseline is 3. The description adds one piece of relational meaning — that workspace/window are used together to target a surface outside the caller's workspace — but says nothing about lines or scrollback beyond what the schema already covers.

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

Purpose4/5

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

States a specific verb and resource: read the current screen or scrollback of a terminal surface. That is unambiguous and distinguishes it from write-oriented siblings such as cmux_send / cmux_send_key. It stops short of differentiating itself from a possibly adjacent read tool like cmux_raw, which is left to inference.

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

Usage Guidelines3/5

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

The second sentence gives a concrete usage condition: pass workspace/window when the target surface lives in another workspace. That is real guidance, but there is no statement of when not to use this tool versus cmux_raw or cmux_list_panels, and no prerequisites are mentioned.

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