Accessibility Tree
A structured semantic representation exposed by the browser engine that records the role, label, and state of every interactive element on a page. Originally designed for assistive technologies such as screen readers, it has become a primary perception channel for AI browser agents.
Core Facts
Browser automation Agents locate webpage elements and simulate human operations through DOM parsing, visual recognition, or Accessibility Tree.
The accessibility tree is a semantic tree structure built by the browser based on the DOM; it strips away visual style information and retains semantic information such as the role, name, state, and properties of each element.
Compared to the raw HTML DOM, the Accessibility tree filters out a large amount of purely visual style information and retains semantically interactive elements, reducing token consumption while improving Agent perception accuracy.
Timeline (last 90 days)
Hybrid input approaches usually provide both the screenshot and the accessibility tree (or DOM) to the model: the screenshot preserves visual layout and icon information, while the structured text provides precise semantics and a list of interactive elements.
The accessibility tree extracts roles, names, states and hierarchical relationships from underlying UI controls, describing the interface in a tree structure.
The accessibility tree is similar to the DOM but closer to the semantic model of native applications and operating systems.
When an LLM reads the accessibility tree, it can directly obtain the semantic labels and interaction capabilities of elements without needing to understand pixel colors and spatial positions, thereby reducing the burden of visual reasoning.
Structured representations (such as the accessibility tree) provide stable reference paths (e.g., "window/button[name=Submit]"), letting the model output semantic-based selections rather than pixel coordinates, with higher reliability and debuggability.
Browser-side AI assistants typically need content scripts, the accessibility tree, or page screenshots to understand a page, and their parsing accuracy and stability are inherently weaker than in an IDE environment.
Automation tools based on the accessibility tree locate elements through semantic nodes (such as "the button named 'Submit'"), which is more robust to front-end refactoring than directly manipulating the DOM.
Playwright MCP provides the page's accessibility tree (rather than a screenshot) to the model; the output is structured text that can be parsed and operated on without relying on a vision model.
Tools such as opencli drastically prune the DOM, first converting the page into an accessibility tree or semantic Markdown, discarding styles and decorative nodes, and retaining only semantic elements, thereby keeping a single call under 400 tokens.
Compared to screenshots, the accessibility tree has higher information density, consumes fewer tokens, and is unaffected by visual rendering, but some dynamic content or custom components may not be fully mapped.
All Facts (15)
Browser automation Agents locate webpage elements and simulate human operations through DOM parsing, visual recognition, or Accessibility Tree.
75%VerifiedThe accessibility tree is a semantic tree structure built by the browser based on the DOM; it strips away visual style information and retains semantic information such as the role, name, state, and properties of each element.
65%VerifiedCompared to the raw HTML DOM, the Accessibility tree filters out a large amount of purely visual style information and retains semantically interactive elements, reducing token consumption while improving Agent perception accuracy.
65%UnverifiedPlaywright MCP provides the page's accessibility tree (rather than a screenshot) to the model; the output is structured text that can be parsed and operated on without relying on a vision model.
60%UnverifiedCompared to screenshots, the accessibility tree has higher information density, consumes fewer tokens, and is unaffected by visual rendering, but some dynamic content or custom components may not be fully mapped.
60%UnverifiedThe accessibility tree is a semantic tree structure built by the browser from the DOM and ARIA attributes, exposed to external programs via the operating system's accessibility API.
60%UnverifiedHybrid input approaches usually provide both the screenshot and the accessibility tree (or DOM) to the model: the screenshot preserves visual layout and icon information, while the structured text provides precise semantics and a list of interactive elements.
50%UnverifiedThe accessibility tree is similar to the DOM but closer to the semantic model of native applications and operating systems.
50%UnverifiedStructured representations (such as the accessibility tree) provide stable reference paths (e.g., "window/button[name=Submit]"), letting the model output semantic-based selections rather than pixel coordinates, with higher reliability and debuggability.
50%UnverifiedWhen an LLM reads the accessibility tree, it can directly obtain the semantic labels and interaction capabilities of elements without needing to understand pixel colors and spatial positions, thereby reducing the burden of visual reasoning.
50%UnverifiedThe accessibility tree extracts roles, names, states and hierarchical relationships from underlying UI controls, describing the interface in a tree structure.
50%UnverifiedBrowser-side AI assistants typically need content scripts, the accessibility tree, or page screenshots to understand a page, and their parsing accuracy and stability are inherently weaker than in an IDE environment.
50%UnverifiedAutomation tools based on the accessibility tree locate elements through semantic nodes (such as "the button named 'Submit'"), which is more robust to front-end refactoring than directly manipulating the DOM.
50%UnverifiedTools such as opencli drastically prune the DOM, first converting the page into an accessibility tree or semantic Markdown, discarding styles and decorative nodes, and retaining only semantic elements, thereby keeping a single call under 400 tokens.
50%Unverified可访问性树(Accessibility Tree)最初是为屏幕阅读器等辅助技术设计的,由浏览器引擎暴露出一份结构化的语义描述
50%