Skip to main content
Glama

screenshot

Read-only

Capture an Android or iOS device, emulator, or simulator screen as base64 JPEG; optionally crop to a UI element for token-efficient component inspection.

Instructions

Capture a screenshot from an Android or iOS device/emulator/simulator. Returns the image as base64 JPEG. Optionally crop to a specific UI element (token-efficient way to inspect one component).

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
scaleNoScale factor (0.1-1.0). Default: 0.5 (1.0 when cropping)
qualityNoJPEG quality (1-100). Default: 50 (80 when cropping)
platformNoTarget platform. Inferred if omitted.
crop_textNoCrop to the element whose text contains this substring (case-insensitive)
device_idNoDevice ID. Omit for the connected device.
crop_paddingNoPadding in native pixels around the cropped element. Default: 8
crop_resource_idNoCrop to the element whose resource_id contains this substring (case-insensitive)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A4/5.0
Behavior4/5

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

With readOnlyHint=true already declaring safety, the description still adds real value: it names the output encoding (base64 JPEG), which the agent cannot learn from annotations or the schema. It does not mention payload size limits or where/whether the image is persisted, but the essential behavioral fact for a read tool is covered.

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?

Three short sentences, front-loaded with the action and target, then the return type, then the optional mode. Every clause carries information and nothing is repeated from the schema.

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 7-parameter, zero-required tool with no output schema, the description covers platform scope, defaults-on-omission behavior implicitly, and the return payload. Minor gaps remain around image size limits and how crops behave when the match is ambiguous, but nothing blocks a correct call.

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 description coverage is 100%, so scale, quality, platform, device_id, and crop_padding are already fully documented with defaults. The description adds group-level meaning by framing crop_text/crop_resource_id as a single 'crop to a UI element' feature, but adds no syntax or edge-case detail beyond 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?

States a concrete verb and resource ('Capture a screenshot'), enumerates supported targets (Android/iOS device, emulator, simulator), defines the return format (base64 JPEG), and carves out a distinct optional mode (crop to one UI element). An agent can separate this from get_ui_tree, get_screen_state, or record_screen 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 Guidelines3/5

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

It gives one useful usage cue – crop when you want a token-efficient look at a single component – which implies when the non-cropped path is appropriate. However, it never says when to prefer this over get_ui_tree/find_element for inspecting a component, and offers no explicit exclusions or prerequisites.

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