Skip to main content
Glama

read_page

Read the current page as a YAML-style accessibility tree and tag interactive elements with [ref_N] IDs so agents can target them for clicks, input, and lookup.

Instructions

Read the current page as a YAML-style accessibility tree. Interactive elements are tagged [ref_N] for use with computer/form_input/find. Output limited to 50000 chars by default.

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_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoMaximum tree depth (default 15).
tabIdNoTab ID to target. Omit to act on the current tab.
filterNoFilter elements ("interactive" = buttons/links/inputs only).
ref_idNoReference ID of a parent element to focus on.
max_charsNoMaximum characters for output (default 50000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two behavioral traits: the textual output format (YAML-style accessibility tree) and the 50000-char output cap. It omits whether reads are side-effect free, how truncation is signaled, and whether the tree reflects lazy-loaded or off-screen content.

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?

Three short sentences, front-loaded with what is returned, then the tagging convention, then the size cap. The third sentence largely duplicates the max_chars default already in the schema, which is minor waste but does reinforce truncation behavior.

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 five-parameter, zero-required, non-mutating read tool with no output schema, the description covers the essentials: return format, ref tagging convention, downstream consumers, and output size. Missing only how the result behaves when truncated or on deep/complex pages.

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%, so all five parameters including depth, tabId, filter, ref_id and max_chars are already documented in the schema. The description only restates the max_chars default and implies the relationship between `[ref_N]` tags and ref_id, adding no syntax or boundary detail beyond the schema.

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 specific verb and resource: read the current page as a YAML-style accessibility tree, and names the notable artifact (interactive elements tagged `[ref_N]`). It does not explicitly distinguish itself from siblings like get_page_text or find, so an agent must infer the tree-vs-text distinction.

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?

The description tells the agent what the `[ref_N]` tags are for (use with `computer`/`form_input`/`find`), which is real workflow context. It gives no guidance on when to pick this over get_page_text or find, and no exclusions, so selection guidance is only implied.

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