Audit HTML for accessibility issues
audit_htmlAudit HTML code for WCAG compliance using axe-core, identifying structural and semantic accessibility issues like missing alt text and unlabeled inputs.
Instructions
Runs axe-core against an HTML string (via jsdom) and returns WCAG violations. Catches structural/semantic issues (missing alt text, unlabeled inputs, missing lang/title, empty link text, etc.) — layout-dependent rules like color-contrast are not reliable in jsdom.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The HTML document to audit | |
| tags | No | Restrict to specific axe-core tags, e.g. ["wcag2a", "wcag2aa"]. Omit to run all rules. |