Skip to main content
Glama

terminal_screenshot

Render captured command output as a terminal-styled PNG screenshot for reports and documentation, using the last capture if no ID is provided.

Instructions

Render a captured command output as a terminal-styled PNG screenshot. Uses the last capture if no ID given.

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": "terminal_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoScreenshot scale factor, 1 = 1x, 2 = 2x retina (default: 2)
themeNoTerminal color theme (default: tokyonight)
titleNoCustom window title (default: command name)
widthNoFixed terminal width in pixels (default: auto, max 980)
promptNoCustom prompt string (default: '$ ')
compactNoCompact mode: reduced padding and spacing (default: false)
font_sizeNoFont size in pixels (default: 14)
max_linesNoMaximum output lines to render, truncates the rest
max_widthNoMaximum terminal width in pixels (default: 980)
save_pathNoFull path to save the PNG (default: auto-generated in ~/terminal-screenshots/)
watermarkNoWatermark text in bottom-right corner
capture_idNoID of the capture to render (default: last capture)
line_heightNoLine height multiplier (default: 1.4)
show_chromeNoShow macOS window chrome with traffic lights (default: true)
show_timestampNoShow timestamp in footer (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it omits that the tool writes a PNG to disk (a side effect discoverable only from the save_path schema entry), what happens when no capture exists, and whether the operation is idempotent. The default-capture rule is the one piece of real behavioral context, which keeps this above a 1.

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 action and followed immediately by the default behavior. Nothing is padded or restated.

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 15-parameter rendering tool with a fully documented schema, this covers the essentials: what is produced, in what format, and which capture is used by default. It falls short only on side effects and failure modes, which matter given the absence of annotations.

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% across all 15 parameters, including defaults and enum values, so the schema does the heavy lifting. The description only echoes the capture_id default and adds no semantics the schema lacks, which is the baseline-3 case.

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 pair: render captured command output as a terminal-styled PNG. That is clearly distinct from text-output or exec-capture variants, though the description never names the sibling it complements (terminal_screenshot_text, terminal_exec_screenshot) to reinforce the boundary.

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 only usage signal is the default rule: 'Uses the last capture if no ID given.' There is no guidance on when to prefer this over terminal_screenshot_text or terminal_exec_screenshot, and no stated prerequisite that a capture must already exist.

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