Skip to main content
Glama

chrome_accessibility_tree

Retrieves a page's accessibility tree as structured semantic content so AI agents can inspect and understand UI elements for reliable browser automation.

Instructions

Get the accessibility tree of the page (structured semantic content)

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

Input Schema

NameRequiredDescriptionDefault
tabIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does little with it. It does not say whether the tree covers the whole page or only visible content, which accessibility tree format is returned, whether output can be very large or truncated, or whether it is a pure read operation—all of which matter for a potentially bulky tree dump.

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?

One short sentence with a clarifying parenthetical—front-loaded, with no wasted wording. Brevity here costs it some specification, but nothing in the text is redundant.

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

Completeness2/5

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

For a tool whose output is a large structured tree, with no annotations and no output schema, the description should explain the return shape and size characteristics. As written, an agent knows only the vague phrase 'structured semantic content,' which is not enough to predict or handle the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one optional parameter, tabId, with 0% schema description coverage, and the description never mentions it. So neither the schema nor the description explains what tabId means or what happens when it is omitted (presumably the active tab), leaving a real gap.

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 description states a specific verb and resource: 'Get the accessibility tree of the page,' with a parenthetical clarifying it is structured semantic content. That is clear enough to act on, but it never distinguishes this from nearby siblings such as chrome_get_html, chrome_get_text, or chrome_find_elements, which an agent must choose between.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says whether this is for locating elements, verifying semantics, or debugging, and no exclusion or alternative is named. The agent must infer its role relative to the HTML and text extraction siblings entirely on its own.

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