> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get accessibility tree

> Render a page and return its browser accessibility tree.

`cloudflare.getAccessibilityTree` returns the semantic browser accessibility tree for a rendered page.

```ts automations/cloudflare-accessibility-tree.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { cloudflare } from "automate.ax/cloudflare"

export default automation("Inspect page accessibility", () => {
  onDashboardRun({ title: "Inspect page accessibility" })
  const tree = cloudflare.getAccessibilityTree({
    accountId: "cloudflare-account-id",
    interestingOnly: true,
    url: "https://example.com/checkout",
  })
  sendEmail({ subject: "Accessibility tree", text: JSON.stringify(tree) })
})
```

## Inputs

Provide `accountId` and exactly one of `url` or `html`. Set `interestingOnly` to limit the result to meaningful nodes or `root` to start at a CSS selector. `cacheTtl` defaults to 5 seconds. The common Browser Run timeout, request, authentication, page-setup, viewport, navigation, and wait controls are also available.

## Output

Returns the recursive accessibility node, including roles, names, states, values, and children. Returns `null` when Cloudflare does not produce a root node. The action consumes Browser Run duration and is not replay-safe.
