a11y-toolkit: W3C Nu validation
a11y_html_validateValidate a URL or raw HTML against the W3C Nu Html Checker to find doctype, encoding, structural, and alt/lang/role issues, mapped to WCAG criteria where relevant.
Instructions
The W3C's own parser as a toolkit mode: checks a URL or raw HTML against the Nu Html Checker (validator.w3.org/nu) — doctype, encoding, structural validity, plus alt/lang/role issues from the authoritative source, mapped to WCAG criteria where they overlap. PRIVACY: html mode POSTs the document to the W3C service (url mode shares only the URL, like a11y_audit_url); self-hosted vnu instances supported via base_url for sensitive content. Returns JSON: Nu validator messages mapped to WCAG criteria where they overlap.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "a11y_html_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page URL to validate (shares the URL with the W3C service) | |
| html | No | Raw HTML to validate — POSTs the content to validator.w3.org/nu; use url or a self-hosted instance for sensitive pages | |
| lang | No | Output language (en default) | |
| base_url | No | Base URL of a self-hosted vnu instance (docker ghcr.io/validator/validator) instead of the public W3C service |