a11y-toolkit: Rendered WCAG audit
a11y_audit_domAudit rendered web pages for WCAG compliance using Chromium, measuring real contrast and target sizes to find issues static checks miss.
Instructions
Deep RENDERED WCAG audit via local Playwright/Chromium: real computed text contrast against effective backgrounds with alpha compositing (1.4.3), pixel-sampled measurement of text over images/gradients (background captured with the text transparent), minimum target size 24×24 (2.5.8, new in WCAG 2.2), visible focus indicator heuristic (2.4.7), plus rendered versions of the static checks (alt, accessible names, labels, headings, lang/title, tabindex, aria-hidden, captions, tables). Findings include remediation. Requires playwright: pip install playwright && playwright install chromium. — Use instead of a11y_audit_url on JS-heavy pages; needs local Playwright. Returns JSON: {mode, url, score 0-100, findings [{criterion, severity, signal, issue, remediation}], summary, score_note} — same shape as the static audit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL to load in Chromium (http/https or file:// for local fixtures) | |
| lang | No | Output language for findings and remediation (default en) | |
| browser | No | Browser engine (auto = detect the first available) | |
| timeout | No | page load timeout seconds (45 default) | |
| auth_state | No | Path to a Playwright storage_state JSON (exported session) to audit behind login — local file, never uploaded | |
| color_scheme | No | Emulate prefers-color-scheme: run the contrast pass in dark mode too — dark themes fail where light passes (nobody audits both) |