Skip to main content
Glama

terminal_exec_screenshot

Execute a shell command and capture its full ANSI-colored output as a themed PNG terminal screenshot for reports, documentation, or professional terminal captures.

Instructions

Execute a command and capture a single PNG screenshot of its full output. One command = one image. This is the primary tool — use it for any shell command (pentest, sysadmin, dev, networking, etc).

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": {
      "command": "<command>"
    },
    "name": "terminal_exec_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory (optional)
scaleNoScale factor 1-3 (default: 2)
themeNo
titleNo
widthNoFixed terminal width in pixels
promptNo
commandYesShell command to execute
compactNoCompact mode: less padding
timeoutNoTimeout in ms (default: 30000)
font_sizeNo
max_linesNoMaximum output lines to render
max_widthNoMaximum terminal width (default: 980)
save_pathNoFull path for PNG output
watermarkNo
line_heightNoLine height multiplier (default: 1.4)
show_chromeNo
show_timestampNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It usefully states the one-command-one-image constraint and 'full output' capture, but says nothing about what is returned (inline image? file path?), what happens on timeout (default 30000ms is only in the schema), whether output is truncated, or the security implications of arbitrary shell execution.

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?

Three short sentences, front-loaded with the action and the key invariant, with zero filler. Every clause adds information an agent can use.

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

Completeness2/5

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

For a 17-parameter, annotation-free tool with no output schema, the description is thin: it never explains the return value (image payload vs. saved file), truncation behavior, or failure modes. The single required parameter (command) is the only part adequately covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Seventeen parameters at 59% schema coverage, and the description adds no parameter meaning at all beyond 'full output'. Rendering controls that materially affect the result — scale, theme, max_lines, max_width, save_path, timeout, compact — are left entirely to the schema, so roughly 7 undocumented parameters get no compensating explanation.

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 first two sentences give a specific verb and resource ('Execute a command and capture a single PNG screenshot of its full output') plus a scope rule ('One command = one image') that an agent can act on without opening the schema. The 'primary tool' framing also implicitly separates it from siblings like terminal_exec and terminal_screenshot.

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?

'This is the primary tool — use it for any shell command (pentest, sysadmin, dev, networking, etc)' gives clear when-to-use guidance and even enumerates domains. It stops short of saying when NOT to use it, e.g. when a plain text capture (terminal_exec / terminal_screenshot_text) would be preferable to a PNG.

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