Skip to main content
Glama
computer
by zznabil

Screenshot

screenshot
Read-onlyIdempotent

Capture a window or display as PNG with caption and token estimate to inspect desktop apps; use region zoom or change verification for cheaper visual checks.

Instructions

Capture a window or display as PNG with a text caption and estimated image token cost. Full captures have frame ids and identify superseded frames. Use detail: low for cheaper verification. Pointer x,y for input tools are pixels of the latest FULL screenshot of the same target. With region, returns a zoomed detail view. Use changes: true to verify against the last full screenshot of this target. It returns a crop with its position, or no image if unchanged. Zoom and delta crops preserve the full input frame. A missing baseline, changed size or scale, or large change returns a new full screenshot.

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": {
      "target": "<target>"
    },
    "name": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoUse low for verification images bounded by 1024×576 or full for the normal bounds. The configured image max edge also applies.
regionNo
targetYesWindow id from list_windows (a "window:<id>" prefix is accepted), "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard.
changesNoCompare with the previous full frame. Cannot be combined with region.
maxWidthNoMax delivered width (default 1366).
maxHeightNoMax delivered height (default 768).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.11.0
    • addedInput schema / properties / changes
      Added value: +{
      +  "description": "Compare with the previous full frame. Cannot be combined with region.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "Use low for verification images bounded by 1024×576 or full for the normal bounds. The configured image max edge also applies.",
      +  "enum": [
      +    "full",
      +    "low"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / target / description
      Previous value: -"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard."New value: +"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard."
  2. Changed1 schema field changedv0.3.3
    • changedInput schema / properties / target / description
      Previous value: -"Window id from list_windows, \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard."New value: +"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard."
  3. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent safety; the description goes well beyond that with frame ids, superseded-frame detection, delta fallback rules ('missing baseline, changed size or scale, or large change returns a new full screenshot'), and the fact that unchanged targets return no image. These are behaviorally material details an agent could not infer from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then mode-specific guidance in descending order of importance, with no filler sentences. It is dense and runs several sentences together, so a short structured breakdown would read slightly better, but every sentence carries information.

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 six-parameter tool with a nested region object and no output schema, the description covers return behavior (crop with its position, or no image if unchanged) and the fallback paths well. Only minor gaps remain, such as the interaction of maxWidth/maxHeight with detail bounds, which the schema already documents.

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

Parameters4/5

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

Schema coverage is high (83%), yet the description still adds meaning: detail:low is tied to verification cost, changes is framed as comparison against the last full frame of the same target, and pointer x,y is anchored to 'the latest FULL screenshot of the same target'. That relational semantics is more than the schema states, though maxWidth/maxHeight and detail bounds are left to the schema.

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 opener gives a specific verb and resource (capture a window or display as PNG) plus the secondary outputs (caption, estimated token cost), which clearly sets it apart from the AX/observation siblings like ax_tree or observe. An agent can immediately tell this is the visual-capture tool.

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?

It gives concrete selection guidance for its own modes: 'Use detail: low for cheaper verification', 'Use changes: true to verify against the last full screenshot', and 'With region, returns a zoomed detail view'. It also frames coordinate semantics for downstream input tools. It stops short of naming an alternative tool for non-visual observation, so it is clear context rather than full when/when-not routing.

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