get_aria_accessibility_tree
Retrieve a compact ARIA accessibility tree (YAML) from a Playwright trace to inspect UI state, with optional targeting of a failed action.
Instructions
Returns the ARIA accessibility tree (YAML) for a frame snapshot in the trace. Reduces DOM token cost by ~90% vs raw HTML. Use action_index to target a specific action — defaults to the failed action, or the last snapshot if no failure.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"trace_path": "<trace_path>"
},
"name": "get_aria_accessibility_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_path | Yes | Absolute path to trace.zip, or a URL (https://) to download it from | |
| action_index | No | Index of the action whose snapshot to use (0-based). Defaults to failed action. |