audit_html
Audit raw HTML for WCAG 2.2 accessibility by rendering it in headless Chromium. Supports axe, pa11y, lighthouse, and ibm engines.
Instructions
Audit a raw HTML string or component snippet for WCAG 2.2 accessibility.
Renders the HTML in headless Chromium (no network fetch) and audits it with the chosen engines. Useful for testing templates/components in CI.
Args: html: The HTML markup to audit. level: WCAG level: "A", "AA" (default) or "AAA". engines: Subset of ["axe","pa11y","lighthouse","ibm"]. Defaults to ["axe"]. steps: Optional interactions before auditing (see audit_url). include_best_practice: Also run axe "best-practice" rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| level | No | AA | |
| steps | No | ||
| engines | No | ||
| include_best_practice | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||