Skip to main content
Glama

Screenshot

screenshot
Read-onlyIdempotent

Capture an app window or full display as an image to verify outcomes or inspect canvas and video, returning screen origin and pixels-per-point for mapping image pixels to click coordinates.

Instructions

Capture an app's largest window, or a whole display, as an image. The result text states the capture's screen origin and pixels-per-point so an image pixel can be converted into click or hover coordinates. Prefer get_app_state for interaction, which is cheaper and returns clickable element ids; for a Chrome tab the agent works in, use browser_screenshot instead, which sees the tab without bringing it to front. Use screenshot to verify an outcome or to see content the accessibility tree cannot describe (canvas, video, custom drawing), and zoom to read small text. Read-only; the captured window is not raised or focused.

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
appNoApp name, bundle id, or pid exactly as reported by list_apps. Captures that app's largest window. Provide either app or display, or "frontmost" for the app the user is looking at
formatNoImage encoding (default png). Use jpeg for live remote viewing.
displayNo0-based display index from list_displays. Captures the whole display instead of an app window.
qualityNoJPEG quality from 1 to 100 (default 55). Ignored for png. Raise it when small text must stay sharp.
max_widthNoDownscale the image to this width in pixels (default 1400). Lower it to save tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.2
    • changedInput schema / properties / app / description
      Previous value: -"App name, bundle id, or pid exactly as reported by list_apps. Captures that app's largest window. Provide either app or display."New value: +"App name, bundle id, or pid exactly as reported by list_apps. Captures that app's largest window. Provide either app or display, or \"frontmost\" for the app the user is looking at"
    • addedInput schema / properties / quality
      Added value: +{
      +  "description": "JPEG quality from 1 to 100 (default 55). Ignored for png. Raise it when small text must stay sharp.",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. Changed3 schema fields changedv0.3.1
    • changedInput schema / properties / app / description
      Previous value: -"App name, bundle id, or pid"New value: +"App name, bundle id, or pid exactly as reported by list_apps. Captures that app's largest window. Provide either app or display."
    • changedInput schema / properties / display / description
      Previous value: -"Capture a whole display by index (see list_displays) instead of an app window"New value: +"0-based display index from list_displays. Captures the whole display instead of an app window."
    • changedInput schema / properties / max_width / description
      Previous value: -"Downscale to this width in pixels (default 1400)"New value: +"Downscale the image to this width in pixels (default 1400). Lower it to save tokens."
  3. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, but the description adds behavior annotations don't carry: the window is not raised or focused, the tab is not brought to front, and the result text reports screen origin and pixels-per-point so image pixels can be converted to click/hover coordinates. That last detail is essential for chaining into click/hover.

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?

Four sentences, each doing distinct work: purpose, coordinate-conversion output, alternative routing, and positive use cases plus the no-focus guarantee. Front-loaded and free of restated schema detail.

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 explains what the result text contains (screen origin, pixels-per-point), which is the key unknown for a screenshot tool. Combined with the routing guidance and the no-raise behavior, nothing needed to call it correctly is missing.

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 coverage is 100% and each parameter already documents its defaults, ranges, and tradeoffs (lower max_width to save tokens, JPEG quality for sharp text). The description adds only the indirect hint to 'zoom to read small text' rather than parameter-level meaning, so baseline 3 is appropriate.

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 and resource: 'Capture an app's largest window, or a whole display, as an image.' It also delineates scope against named siblings (get_app_state, browser_screenshot), so an agent can differentiate without inspecting schemas.

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?

Gives explicit routing rules: prefer get_app_state for interaction, browser_screenshot for a Chrome tab the agent works in, and screenshot for outcome verification or content the accessibility tree can't describe. It also names zoom as the tool for reading small text, covering the main alternatives.

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