a11y-toolkit: Rendered WCAG audit
a11y_audit_domRun a deep rendered WCAG 2.2 audit on JavaScript-heavy pages with local Playwright/Chromium, checking computed contrast, target size, focus indicators, and static accessibility issues.
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.
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": {
"url": "<url>"
},
"name": "a11y_audit_dom"
}
}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) | |
| target | No | EN 301 549 target: web=9.x clauses (default), documents=10.x, software=11.x | |
| browser | No | Browser engine (auto = detect the first available) | |
| timeout | No | page load timeout seconds (45 default) | |
| standard | No | add the EN 301 549 V4.1.1 (2026) clause to every finding plus a standard block | |
| 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) |