Accessibility tree (ARIA YAML)
browser_accessibility_treeGenerate a Playwright ARIA snapshot (YAML) of a page or element to inspect accessibility structure and write toMatchAriaSnapshot assertions.
Instructions
Playwright's ARIA snapshot (YAML) of the page or an element, useful for writing toMatchAriaSnapshot assertions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_accessibility_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | ||
| ref | No | Element ref from snapshot (preferred) | |
| name | No | ||
| role | No | ||
| text | No | ||
| exact | No | ||
| label | No | ||
| pageId | No | ||
| testId | No | ||
| within | No | Scope to a unique container (ref, role+name, label, testId or CSS selector) | |
| session | No | ||
| selector | No | CSS (last resort) | |
| placeholder | No |