Skip to main content
Glama

Read page elements

read_page

Lists page elements with reusable reference IDs so agents can target buttons, links, and inputs for form input or computer actions; re-read after navigation or node replacement to avoid stale refs.

Instructions

List elements on the page as [ref_N] role "name" lines. Each opaque ref identifies the original node in its document and can be passed unchanged to form_input or computer (ref). Stale or duplicated refs fail; read again after navigation or node replacement. Default filter 'interactive' (buttons/links/inputs); use 'all' for a broader dump. Refs come from the most recent read_page/find call.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tabId": "<tabId>"
    },
    "name": "read_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesTarget tab ID (must be in the MCP group)
filterNointeractive (default) or all
compactNoPrioritize useful content, deduplicate text and retain actionable refs
frameIdNoCompact mode: limit to a frame
maxCharsNoMax output chars (default 12000)
maxResultsNoMax elements (default 200, max 1000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does real work: refs are opaque identifiers bound to the original node, stale or duplicated refs fail, and refs must be re-read after navigation. The failure mode is the most valuable disclosure here. It leaves the tab-group membership requirement and any output truncation behavior to the schema/other sources.

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 output shape, then constraints, then parameter defaults — a sensible ordering with no filler. The final sentence about refs coming from the most recent read_page/find call slightly overlaps the earlier staleness sentence and could be folded in.

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?

With no output schema, explaining the literal line format and the lifetime of refs is exactly what the description needs to supply, and it does. The one remaining gap — what 'compact' changes — is documented in the schema itself, so an agent has everything required to call this correctly.

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 the baseline is 3. The description restates the filter default and the 'all' mode but adds nothing about compact, frameId, maxChars or maxResults beyond what the schema already documents.

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?

The first sentence gives a specific verb (list), resource (elements on the page) and even the exact output line format `[ref_N] role "name"`, which is far beyond a restatement of the name. It does not explicitly contrast itself with get_page_text or find, though the closing note that refs come from 'the most recent read_page/find call' implies a relationship without defining the split.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Clear operational context: the default 'interactive' filter is named with examples (buttons/links/inputs), 'all' is offered for a broader dump, and the agent is told to re-read after navigation or node replacement. It stops short of stating when to reach for this instead of find or get_page_text, so the alternative-selection guidance is incomplete.

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