Skip to main content
Glama
Antigravity in Chrome MCP Server

Antigravity in Chrome MCP Server

by sxqib

read_page

Reads a web page's semantic accessibility tree and assigns stable element reference IDs so controls can be targeted by form, computer, and upload actions.

Instructions

Read the semantic accessibility tree of a web page. Assigns stable element reference IDs (ref_1, ref_2, ...) that can be passed to computer, form_input, or upload_image.

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 DOM/accessibility traversal depth (default 15).
tabIdNoTarget tab ID (defaults to active managed tab).
filterNo"interactive" returns only buttons, links, inputs, and controls; "all" includes structural headings and text nodes. Defaults to "interactive".
ref_idNoOptional ref ID (e.g., "ref_12") to focus reading on a specific subtree.
max_charsNoMaximum output length in characters (default 45000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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. It usefully discloses that element IDs are stable and reusable across calls, but says nothing about truncation behavior, whether the ref namespace is per-call or persistent across navigations, or that the operation is side-effect free beyond the word "Read".

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?

Two sentences with no filler: the first defines the operation, the second defines the output contract and its consumers. Front-loaded and entirely load-bearing.

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 zero-required-parameter read tool with no output schema, the definition covers both what is returned (the accessibility tree) and how it is addressed (ref IDs), with parameters fully handled by the schema. Minor gaps remain around truncation and ref lifetime across page changes.

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 depth, tabId, filter, ref_id, and max_chars are already fully documented with defaults and enum meaning. The description adds no parameter-level meaning beyond what the schema supplies, so the baseline 3 applies.

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 specific verb and resource ("Read the semantic accessibility tree of a web page") and, crucially, names the artifact it produces (stable ref_1, ref_2 IDs). That output signature distinguishes it from text-extraction siblings like get_page_text without needing to open 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 Guidelines4/5

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

Gives clear context for use by naming the downstream consumers of the ref IDs (computer, form_input, upload_image), which tells an agent this is the step before interaction. It stops short of explicit when-not guidance, e.g. no statement of when get_page_text or find is preferable.

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