audit_html
Run axe-core accessibility audits directly on raw HTML content to detect WCAG violations, even without a live server.
Instructions
Run an axe-core audit on raw HTML content. Useful for testing components or generated markup without a running server. Network requests from embedded resources are blocked.
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": {
"html": "<html>"
},
"name": "audit_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML content to audit | |
| level | No | WCAG conformance level (default: aa) | |
| rules | No | Specific axe-core rule IDs to run | |
| viewport | No | Viewport emulation (default: desktop) | |
| maxViolations | No | Top N per impact group (default 10) | |
| includeIncomplete | No | Include needs-review results |