Skip to main content
Glama

terminal_screenshot

Captures the current rendered terminal screen for a given session, stripping ANSI escape sequences so AI agents can inspect visible CLI output.

Instructions

Capture what the user currently sees in the terminal — the rendered text grid with ANSI escape sequences stripped. This is the equivalent of looking at the screen.

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": {
      "session_id": "<session_id>"
    },
    "name": "terminal_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesThe session ID returned by terminal_spawn

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that output is the rendered grid with ANSI sequences removed, which is genuinely useful and implies a non-destructive snapshot. It stops short of saying whether this is a point-in-time capture, whether it requires an active/live session, or what happens if the session_id is invalid or the session has exited.

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 a clarifying analogy; every clause adds information and nothing is redundant.

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

Completeness4/5

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

For a single-parameter read tool with no output schema and no annotations, the definition covers purpose and the shape of the returned content adequately. Minor gaps around session-state behavior and error conditions keep it from being fully complete.

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?

Only one parameter and schema coverage is 100%, with the schema itself explaining that session_id comes from terminal_spawn. The description adds nothing about the parameter, which is acceptable at this coverage level but earns only the baseline.

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?

The description names a specific verb and resource — capture the terminal's rendered text grid — and adds the key qualifier that ANSI escape sequences are stripped, so the agent knows the return is plain text. It does not distinguish itself from siblings such as terminal_export or terminal_trace, leaving the boundary implicit.

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?

'This is the equivalent of looking at the screen' gives an intuitive framing for when the tool applies, but there is no explicit when-not guidance and no reference to alternatives that also surface terminal content (e.g. export or assert). 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.