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.
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. |