Get the accessibility tree
get_accessibility_treeRetrieve a hierarchical role/name/text outline of the visible DOM to understand page structure and complement flat interactive refs. Bounded by maxNodes and depth, with truncation reporting.
Instructions
Hierarchical role/name/text outline of the VISIBLE DOM — structure to complement read_page's flat interactive refs. Top frame only (for shadow DOM / iframes use read_page). Bounded by maxNodes (default 400, max 2000) + depth; returns {ok, tree, nodes, truncated}.
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": "get_accessibility_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| maxNodes | No | Max nodes to emit (default 400, capped at 2000) |