Get Accessibility Tree
get_accessibility_treeCapture a page's accessibility tree to analyze ARIA roles, names, and properties for testing and audits.
Instructions
Capture a snapshot of the current page's accessibility tree. Returns a hierarchical tree of ARIA roles, names, and properties. Use interestingOnly=false for the complete raw tree. Use useFullTree=true for the CDP-level complete tree (slower but more accurate). Use maxDepth to control how deep the tree goes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interestingOnly | No | If true, prunes nodes that are not interesting (hidden, presentational). Set false to get the raw full tree. Default: true | |
| maxDepth | No | Maximum tree depth to return. Default: 10 | |
| useFullTree | No | If true, uses CDP Accessibility.getFullAXTree (more complete but slower). If false, uses page.accessibility.snapshot(). Default: false |