Skip to main content
Glama

screenshot

Capture the screen as an image to inspect visual UI elements, menus, or apps when text extraction fails, then click exact pixel coordinates.

Instructions

See the screen as an image. Use it whenever reading text isn't enough: you can't find or read an element, a dropdown/list/menu isn't behaving, a click hit the wrong thing, or the app is visual (canvas, maps, images). Then click what you see with act([{"click": [x, y]}]) in this image's pixels. ref="window" or "w3" = just that window; ref="e12"/"b12" = crop around an element (cheap, sharp); region=[x,y,w,h] in the previous screenshot's pixels = zoom in; marks=draw snapshot refs on the image. A full screen costs ~1-2k tokens; crops cost less.

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
refNo
marksNo
regionNo
screenNo
max_sideNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses coordinate spaces ('in this image's pixels' for clicking vs the previous screenshot's pixels for region), token cost (~1-2k for full screen, less for crops), and what marks actually does. It leaves open what happens with an invalid ref, whether an app/session must be active, and what max_side does to the image.

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 purpose and triggers before parameter variants, and the cost note arrives at the end where it is actionable. Dense but almost every clause carries operational meaning; the parenthetical '(cheap, sharp)' is the only near-filler.

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 5-parameter, no-annotation, no-output-schema tool, the description covers the decision (when to screenshot), the mechanism (ref/region/marks), and the follow-up action. Remaining gaps are the undocumented 'screen' and 'max_side' parameters and any note on failure modes for bad refs.

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 0%, so the description must compensate for all five params; it explains ref, marks and region with real semantics (including the pixel coordinate frame for region), which the bare schema titles do not. But 'screen' (monitor selection) and 'max_side' (resize cap, default 1280) are never mentioned, leaving two parameters opaque.

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 concrete verb+resource ('See the screen as an image') and immediately sets itself apart from text-reading tools via 'whenever reading text isn't enough', implicitly routing agents to snapshot/find for the text path. The follow-up line naming act([{"click": [x, y]}]) ties the output to the correct next call.

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 four explicit trigger conditions (element not findable/readable, misbehaving dropdown/menu, mis-aimed click, inherently visual app like canvas/maps/images) plus the exact consumption pattern afterwards. It also states which variant to choose: ref="window"/"w3" for a whole window, element refs for cheap sharp crops, region for zoom.

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