a11y-toolkit: Deterministic safe auto-fixes
a11y_autofixApplies deterministic, allowlisted HTML accessibility fixes for viewport zoom, autocomplete tokens, missing lang, and empty title; returns fixed HTML and applied/not-applied issues with remediation.
Instructions
DETERMINISTIC safe auto-fixes applied to HTML — the honest anti-overlay: a short closed list of fixes where the correct answer is unique (unblock viewport zoom 1.4.4, add the exact autocomplete token 1.3.5, fill missing html lang and empty title when provided). Everything requiring judgment (alt text, contrast, accessible names) is NOT touched — it returns not_applied with the reason and remediation instead. Returns fixed_html + applied + not_applied. — Only the closed allowlist of provably safe fixes; judgment fixes come back as not_applied with remediation. Returns JSON: {fixed_html, applied [{fix, …}], not_applied [{issue, remediation}]} as text content (the agent writes the file).
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": "a11y_autofix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL context for the report metadata (default: "(html)") | |
| html | Yes | raw HTML to fix | |
| lang | No | only if provided and <html> lacks lang | |
| title | No | only if provided and <title> is empty | |
| form_errors | No | inject the accessible form-error layer into forms without their own handling (default true) |