scan_html
Scan raw HTML snippets for accessibility issues without serving the page. Runs axe-core only for faster results.
Instructions
Scan a raw HTML snippet for accessibility issues without serving it. Useful for code review, component snippets, or content from docs. Spins up a headless page, sets the HTML, and runs axe-core ONLY — lighter and faster than scan_page, but it skips the WebAbility detectors and HTML_CodeSniffer, and returns axe violations (with an incomplete count), not scan_page's three-tier issues/incomplete/summary shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML content to test | |
| tags | No | WCAG tags to check (default ["wcag2a","wcag2aa","wcag21aa","wcag22aa"]) | |
| width | No | Viewport width (default 1280) | |
| height | No | Viewport height (default 800) |