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.
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 | The HTML document to audit | |
| tags | No | Restrict to specific axe-core tags, e.g. ["wcag2a", "wcag2aa"]. Omit to run all rules. |