Skip to main content
Glama

screenshot

Read-only

Captures an instance's display as an image so agents can inspect the screen before acting; supports region crops, scaling, and saving evidence files.

Instructions

Screenshot of an instance's display — the ONLY way to see the screen; always look before you act.

Returns [json, image]: {"ok", "instance", "width", "height", "region", "scale", "format", "bytes"} plus the image. Options to cut payload or zoom: region="x,y,w,h" crop to a rectangle (zoom into small text/icons; coordinates stay absolute — add x,y back when you click), default = full display; scale=0.5 downscale (0.1–1.0) for cheap overview shots; format="jpeg" smaller than PNG for photos/video, quality 1–95 (default png, lossless); save_as="shot.png" write the image into the instance's staging folder files// and return ONLY the JSON ({…, "saved": path, "name", "overwritten"}) — no image content, so no image tokens: for evidence you will attach or upload, not look at. Same path rules as put_file; an existing file is replaced. For an element list with coordinates use parse_screen (basic/local vision). Prefer observe='screenshot' on action tools to act and see the result in one call. Fails (isError) if the instance is down, the region is outside the display, or the format is unknown.

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

Input Schema

NameRequiredDescriptionDefault
scaleNo
formatNopng
regionNo
qualityNo
save_asNo
instanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • addedInput schema / properties / save_as
      Added value: +{
      +  "default": "",
      +  "title": "Save As",
      +  "type": "string"
      +}
  2. Changed4 schema fields changedv0.3.0
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "png",
      +  "title": "Format",
      +  "type": "string"
      +}
    • addedInput schema / properties / quality
      Added value: +{
      +  "default": 80,
      +  "title": "Quality",
      +  "type": "integer"
      +}
    • addedInput schema / properties / region
      Added value: +{
      +  "default": "",
      +  "title": "Region",
      +  "type": "string"
      +}
    • addedInput schema / properties / scale
      Added value: +{
      +  "default": 1,
      +  "title": "Scale",
      +  "type": "number"
      +}
  3. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past readOnlyHint/openWorldHint by documenting the return payload keys, the token-cost tradeoffs of region/scale/format, that save_as returns JSON only with no image tokens, that an existing file at that path is replaced, and the three specific isError conditions (instance down, region outside display, unknown format). Minor tension: save_as writes into the instance's staging folder despite readOnlyHint, but this is disclosed rather than hidden, so it is not a contradiction.

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?

Front-loaded with the imperative and the payload shape, then a consistently formatted option list where each line states syntax, effect, and when to pick it. Dense but every sentence carries information an agent needs; nothing is repeated from structured fields verbatim.

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

Completeness5/5

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

No output schema exists, yet the description enumerates the JSON return keys, the image part, the save_as variant return, and the failure modes. For a six-parameter tool with zero schema descriptions, this is essentially complete; only the 'instance' argument's meaning is left implicit.

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?

With 0% schema coverage the description carries the full load, and it does: region syntax 'x,y,w,h' plus the important caveat that coordinates stay absolute and must be added back on click, scale range 0.1–1.0, quality 1–95 with format-specific rationale, and save_as path/overwrite semantics matching put_file. The one gap is the 'instance' parameter, which is never explained even though many siblings (list_instances, launch_app) imply multi-instance setups.

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?

Opens with a specific verb+resource ('Screenshot of an instance's display') and immediately bounds the scope with 'the ONLY way to see the screen.' It distinguishes itself from parse_screen (element list with coordinates) and from observe='screenshot' on action tools, so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('always look before you act'), explicit alternatives with the condition that selects them ('for an element list with coordinates use parse_screen', 'prefer observe=screenshot to act and see in one call'), and explicit when-not guidance for save_as ('for evidence you will attach, not look at').

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