Skip to main content
Glama

Wait for Pane Output

pane_wait_output
Read-onlyIdempotent

Blocks until a terminal pane's output contains a specified literal string or Rust regex, returning immediately if the text is already on screen.

Instructions

Block until a pane's terminal output contains a literal substring ('match') or matches a Rust regular expression ('regex'). Output already on screen matches immediately.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pane_id": "<pane_id>"
    },
    "name": "pane_wait_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoOptional row limit to search.
matchNoLiteral substring to wait for.
regexNoRust regular expression to wait for (if 'match' is omitted).
sourceNoSnapshot source (default 'recent').
pane_idYesTarget pane ID.
timeout_msNoTimeout in milliseconds (default 60000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds meaningful behavior beyond that: the call blocks, it matches literal substrings or Rust regexes, and pre-existing on-screen output satisfies the condition immediately. It does not say what happens on timeout or whether the returned payload contains the matched text, which prevents a 5.

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 compact sentences, front-loaded with the blocking purpose and the two matching modes, with zero filler. Every clause carries information an agent needs.

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 the matching contract well, but for a blocking tool with a default 60s timeout it omits timeout behavior (error vs. empty result) and what the return value contains (matched text, snapshot, or boolean). With no output schema, that return-shape gap matters more than it would otherwise.

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 coverage is 100%, so the schema already documents pane_id, match, regex, lines, source, and timeout_ms. The description reinforces the literal-vs-regex distinction and the either/or relationship between the two matchers, but adds little syntax or format detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 (block/wait) plus the resource (a pane's terminal output) and the two match conditions ('match' literal substring, 'regex' Rust regex). An agent can distinguish it from pane_read because the description says it blocks until a condition holds. It does not name a sibling alternative, which keeps it at 4 rather than 5.

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 clause 'Output already on screen matches immediately' implies it is safe to call even when output may already exist, which is useful usage context. However, there is no explicit guidance on when to prefer this over pane_read or agent_wait, nor what to do when the wait should be abandoned. Usage is implied rather than stated.

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