Skip to main content
Glama
computer
by zznabil

Screenshot

screenshot
Read-onlyIdempotent

Captures a window or display as PNG for desktop inspection; optionally returns a zoomed region for detailed viewing.

Instructions

Capture a window or display as PNG. Pointer x,y for input tools are pixels of the latest FULL screenshot of the same target. With region, returns a zoomed detail view that does not change that input frame.

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
regionNo
targetYesWindow 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.
maxWidthNoMax delivered width (default 1366).
maxHeightNoMax delivered height (default 768).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: pointer coordinates for input tools are pixels of the latest FULL screenshot of the same target, and a region capture returns a zoomed view that does not change the input frame — a non-obvious side effect that prevents coordinate mistakes.

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?

Three tight sentences, front-loaded with the core action, with no filler. The middle sentence is dense and requires re-reading ("pixels of the latest FULL screenshot of the same target"), which slightly hurts first-pass comprehension.

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?

With no output schema, the description correctly states the return form (PNG, or zoomed detail view) and the coordinate-frame contract that matters for a screenshot tool. Remaining gaps — multi-display behavior beyond the target enum and how scaling interacts with pointer coordinates — are minor.

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 75% and the schema already documents target, region coordinates, and max dimensions. The description adds meaning the schema does not: it clarifies that region is a zoomed detail view over the same frame used for pointer input, and that delivered size may be capped (matching maxWidth/maxHeight defaults).

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?

"Capture a window or display as PNG" gives a specific verb (capture) and resource (window/display) plus the output format. It is immediately distinguishable from action tools like click or type_text, though it never contrasts itself with the likely alternative observe, so the sibling boundary is left 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?

The description implies when to use it (to get a pixel frame for pointer coordinates, or a zoomed detail view via region), but never states when to prefer it over alternatives such as observe or ax_tree, nor any exclusions. Usage must be inferred from the coordinate-frame note rather than stated.

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