Scan a local HTML file for accessibility issues
scan_fileRun an axe-core accessibility audit on a local HTML file to detect WCAG violations and receive fix guidance.
Instructions
Runs an axe-core accessibility audit against a local .html file on disk (loaded via file:// so linked CSS/assets resolve). Use for static-site build output. Note: single-page-app build files are usually empty shells hydrated by JS — scan the running dev server with scan_url instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a local .html file (absolute, or relative to the server's cwd). | |
| tags | No | WCAG / rule tags to run, e.g. ["wcag2a","wcag2aa","wcag21aa","best-practice"]. Omit to run the default rule set. | |
| rules | No | Only run these axe rule ids, e.g. ["color-contrast","image-alt"]. | |
| detail | No | "summary" lists violated rules and counts only; "full" (default) also lists offending elements and fix guidance. | full |
| include | No | Optional CSS selector to scope the scan to one region of the page. | |
| maxNodes | No | Max offending elements to list per rule when detail=full. | |
| timeoutMs | No | Load timeout in ms (default 30000). | |
| excludeRules | No | Axe rule ids to skip. | |
| includeIncomplete | No | Also report axe "incomplete" items — checks that need manual review (e.g. color-contrast over images, aria-hidden focus). Off by default; set true to surface likely issues automated rules could not confirm. |