Skip to main content
Glama

inspector.accessibility_tree

Read-only

Retrieves the full accessibility tree as a screen reader would traverse it, letting agents inspect page semantics and ARIA structure for the active or a targeted browser page.

Instructions

Full accessibility tree, as a screen reader would traverse it.

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": "inspector.accessibility_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_nodesNo
save_pathNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. Beyond that, the description adds a useful hint about traversal order/structure but says nothing about output size, whether the tree is truncated, how max_nodes affects completeness, or when save_path should be used over an inline return.

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?

One short sentence with no wasted words, but it is terse to the point of under-specification, and the structural hint about screen-reader traversal is buried in a fragment rather than front-loaded as actionable guidance.

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 four-parameter tool with half its parameters undocumented and no output schema, the description should clarify truncation behavior, output shape, and the role of save_path. It provides only a conceptual characterization of the result, leaving key operational details unstated.

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?

Schema coverage is only 50%: target_id and browser_id are documented in the schema, while max_nodes and save_path are undocumented in both schema and description. The description mentions no parameters at all, so it fails to compensate for the coverage gap on the two ambiguous arguments.

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?

Names a specific resource (accessibility tree) and qualifies it as the 'full' tree rendered the way a screen reader traverses it, which distinguishes it from narrower siblings like inspector.children or inspector.element. The verb is only implied, but an agent can tell what it retrieves.

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 explicit when-to-use guidance and no named alternatives; the word 'Full' hints that narrower inspection tools exist but never says to prefer them for partial queries. The agent must infer routing from sibling names, which the description does not address.

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

Deploy Server

Other Tools