OpenAI’s help page for ChatGPT Atlas tells site owners something accessibility teams have been saying for years. The agent reads page structure and interactive elements through ARIA tags, the same labels and roles screen readers rely on. So your accessibility tree is an input to AI agents. If a buyer asks an assistant to compare your plans or book a demo, the agent figures out what each control does by reading that tree.
Key Takeaways
- Browser agents read the accessibility tree alongside screenshots because it gives them named, typed elements they can act on precisely and at low token cost.
- The failures that hurt agents most are missing names: unlabelled form fields, empty buttons and empty links, which WebAIM finds on a large share of the top million home pages.
- An audit of five task-critical templates in Chrome DevTools and a Playwright snapshot catches most agent-blocking problems without starting a full WCAG remediation.
What Does an Agent Actually Read When It Opens Your Page?
Your browser keeps three versions of a page at the same time. There’s the DOM, which is every element your code produced. There are the rendered pixels. And there’s the accessibility tree, a pruned copy of the DOM that the browser builds for assistive technology. Every node in it gets a role and an accessible name, plus a state.
Microsoft’s Playwright MCP server is one of the common ways developers give a language model a browser, and by default it hands the model that tree. Its documentation says it works from accessibility snapshots instead of screenshots. A snapshot is plain text. You’ll see a level 1 heading named “todos”, a textbox named “What needs to be done?”, and a list of checkboxes that are each named “Toggle Todo”. Each node gets a short reference. To click or type, the model passes that reference back.
The same documentation lays out its reasoning in a comparison table. Because snapshots are text, they’re cheap in tokens, and every reference points at exactly one element. Screenshots burn image tokens and force the model to guess coordinates (which a layout change can break).
Why the Tree Is a Secondary Signal, and Why Secondary Is Enough to Lose a Task
Hardly any agent works from the tree alone. Playwright itself suggests pairing snapshots with screenshots for canvas apps, charts and image-heavy layouts, and agents built on vision models start from the rendered page. The tree sits next to the pixels as a second reading of the same page.
Close calls get settled by secondary signals. Say a screenshot shows a magnifying-glass icon. Only the tree tells the agent whether that’s a button named Search or an unnamed generic element that just happens to have a click handler attached. If both readings agree, the agent acts. If the tree says nothing, the agent has to guess intent from pixels, and that’s slower and fails more often.
For AEO, the problem is where agents sit. Training-data presence and retrieval presence decide whether an assistant mentions your brand in the first place. The agent layer comes after, and it decides whether the assistant can finish the job on your site, whether that’s opening the pricing page, flipping to annual billing or submitting the demo form. You can win the citation and still lose the task.
An unlabelled button is a barrier for a screen reader user and a guess for an AI agent, and the fix is the same line of HTML.
The Failures That Block Agents Are Already Measured
WebAIM’s 2025 analysis of the top one million home pages found detectable WCAG 2 failures on 94.8% of them, an average of 51 errors per page. Six error types account for 96% of everything detected, and the same six have topped the list for five years.
Look at that list from an agent’s side and it falls into two groups. Low contrast text, the most common failure at 79.1% of pages, matters to people with low vision and very little to a model parsing the tree. The naming failures matter a great deal: missing form input labels on 48.2% of home pages, empty links on 45.4% and empty buttons on 29.6%. Every one of those is a node that has a role and no name. WebAIM also found ambiguous link text, such as “click here” or “more”, on 13.7% of pages.
The tempting fix is to put ARIA on everything. The same report pushes back on that. ARIA appeared on 79.4% of home pages, and pages with ARIA averaged 57 detected errors against 27 on pages without it. WebAIM is careful to note that ARIA didn’t necessarily cause those errors, because the pages using it tend to be more complex. Still, 35% of ARIA menus introduced barriers because the required markup and interactions were missing.
Adrian Roselli, an accessibility consultant, said much the same when OpenAI published its guidance. ARIA is a fallback, and native HTML comes first. A real button element ships with the right role, focus behaviour and keyboard handling. Put role=”button” on a div and you’ve made a promise that the developer now has to keep by hand.
How to Audit the Tree Without Opening a WCAG Project
A WCAG audit checks every page against every success criterion. An agent audit is much narrower. It only asks whether a machine reading nothing but the tree could complete the tasks that bring in revenue, and you can scope that in an afternoon.
- Choose the templates where an agent would act on a buyer’s behalf. For most brands that means pricing, the signup or demo form, a product or plan detail page and site search, plus checkout if you sell online.
- Open each one in Chrome DevTools. Flip the accessibility toggle in the Elements panel and the DOM tree gets replaced by a full-page accessibility tree. Select any node to see its role and name under Computed Properties.
- Go through every interactive element on the path to conversion. Its role should match how it behaves. Its name should say what happens when you use it (“Start free trial” tells an agent far more than “Submit”). And wherever state matters, the state has to be exposed, like expanded on an accordion or checked on a plan toggle.
- Check the structure next. You want one main landmark and a heading order that mirrors the page, with nothing important tucked inside aria-hidden. WebAIM counted an average of 18 aria-hidden=”true” attributes per home page, and anything hidden that way disappears from the tree.
- Then read the page the way an agent would. Point Playwright MCP at the template, ask for a snapshot and try to finish the task from the text alone. If you can’t work out which control submits the form, an agent can’t either.
Write down each failure next to the task it blocks. A pile of defects becomes a priority order.
What to Do This Week
Begin with the pricing page and your main conversion form. An agent failure on either one costs you a buyer who had already picked you.
Work through the fixes in a set order. First, swap clickable divs and spans for native button and link elements. Give every form input a programmatic label. Add accessible names to icon-only buttons, then rename generic links so each one says where it goes. Only after all that should you look at the ARIA you already have and strip out anything that contradicts the native semantics underneath it, starting with custom menus.
After that, keep the problem from creeping back. Save the Playwright snapshot text for every audited template and compare it on each release. If a button loses its name, you’ll see a one-line change in a text diff well before anyone spots a dip in conversions that agents complete.
Last, send what you found to whoever owns accessibility. Every fix here also counts toward WCAG conformance, so two budgets can pay for the work instead of one.
FAQs
Do AI Agents Read ARIA Attributes Directly?
Agents typically read the accessibility tree, which the browser computes from native HTML semantics and any ARIA attributes on the page. OpenAI states that ChatGPT Atlas uses ARIA labels and roles to interpret page structure and interactive elements.
Should We Add ARIA Labels to Every Element to Help AI Agents?
No. Native HTML elements already expose the correct roles. WebAIM found that home pages using ARIA averaged more than twice as many detected errors as pages without it. Use ARIA only where native HTML cannot express the control.
Is an Accessibility Tree Audit the Same as WCAG Compliance?
No. This audit covers what an agent needs to complete key tasks, mostly roles, names and states. WCAG covers far more, including contrast, captions and keyboard behaviour. The fixes overlap, so they count toward conformance.
Which Tools Show the Accessibility Tree?
Chrome DevTools can replace the DOM view in the Elements panel with a full-page accessibility tree. Playwright MCP returns a text snapshot of the tree, which is close to what an agent receives.