Skip to main content
Glama

Read screen

read_screen
Read-only

Reads mobile app screens as structured text so agents can inspect UI elements, locate controls, and verify state during automated testing.

Instructions

Read the screen as text. Returns each element of the accessibility tree as ref role "label" x,y flags; views: the native view hierarchy instead. selector: only its matches, with state, value and bounds. Assert: check_element; pixels: take_screenshot; audits, visual diffs: check_screen; web views: inspect_app. Like rows fold under a header; refs hold across scrolls. raw: every node as data.

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

Input Schema

NameRequiredDescriptionDefault
rawNo
viewsNo
selectorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only and non-open-world safety, so the bar is lower, and the description adds real behavior: elements are returned as stable refs that "hold across scrolls", selector mode returns matches with state, value and bounds, and raw mode returns every node as data. It does not explain what the flags mean or whether results are truncated on large trees, which keeps it off a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the text is short, but it is written as a chain of colon-delimited fragments that reads like release notes. The aside "Like rows fold under a header" is an unclear metaphor whose meaning an agent cannot reliably act on.

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

Completeness3/5

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

There is no output schema, so the description must characterize the return value, and it does give the line format and per-mode return differences. However, it omits how refs are consumed later (e.g., by tap_screen), what the flags encode, and how large hierarchies are handled, leaving gaps for a tool that is the entry point to most interaction flows.

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 0% with a nested selector object, so the description carries the burden. It does define all three top-level parameters (raw, views, selector) with meaning beyond their names, but the nested selector fields id, role, text and index are never explained, nor is matching/combination semantics.

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?

States a concrete verb and resource ("Read the screen as text") and immediately defines the return shape as "ref role \"label\" x,y flags", which is specific enough to distinguish it from check_element and take_screenshot. It stops short of a plain-language sentence of what the tool is for, relying on terse fragments, but the resource and output form are unambiguous.

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?

Explicitly routes the agent to alternatives by intent: assert work goes to check_element, pixels to take_screenshot, audits and visual diffs to check_screen, web views to inspect_app. It also states the condition for each mode (views = native view hierarchy, selector = only matches, raw = every node), giving both when-to-use and when-to-use-something-else.

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