Audit a local HTML file for accessibility issues
audit_fileAudit an HTML file for accessibility issues using axe-core rules. Specify a local file path and optional rule tags to detect WCAG violations.
Instructions
Same checks as audit_html, reading the document from a local file path.
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": {
"path": "<path>"
},
"name": "audit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a local .html file | |
| tags | No | Restrict to specific axe-core tags, e.g. ["wcag2a", "wcag2aa"]. Omit to run all rules. |