a11y-toolkit: A11y snapshot + tab order
a11y_snapshotCapture a URL's interactive elements, real tab focus order, and screen-reader accessibility tree as JSON before deployment. Compare snapshots with a11y_diff to detect accessibility changes.
Instructions
Accessibility snapshot of a URL: interactive elements (tag, role, accessible name, href) in DOM order, the REAL tab focus order, and when Playwright ≥1.49 is available the computed ACCESSIBILITY TREE (aria snapshot — what a screen reader announces). Save it before a deploy and compare after with a11y_diff. Requires local Playwright. — Capture half of the watch loop; compare with a11y_diff (or a11y_diff_urls for two live URLs). Returns JSON: {url, ts, elements [{tag, role, name, ref…}], focus_order}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL to snapshot (http/https or file://) | |
| auth_state | No | Path to a Playwright storage_state JSON (exported session) to snapshot behind login |