match_aria_snapshot
Match expected accessibility snapshots to UI elements using partial, strict, or regex modes. Returns a pass/fail diff for validation.
Instructions
Match an expected accessibility snapshot (Playwright - role "name" [attr] grammar) against a UI. mode: partial (subset, default) | strict (exact) | regex (each expected line is a pattern). Returns a pass/fail diff — a normal result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | `partial` (default) | `strict` | `regex`. | partial |
| size | No | ||
| theme | No | ||
| expected | Yes | The expected aria snapshot. | |
| description | Yes | The UI description: a `fenestra/1` JSON object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the actual tree matched the expected snapshot. | |
| diff | Yes | A unified-style diff (empty when `ok`). |