audit_accessibility
Audit any UI component for WCAG 2.1 accessibility violations including contrast, ARIA, keyboard navigation, semantic HTML, and focus management. Receive issues with severity, suggestions, and criteria references.
Instructions
Audit a component for WCAG 2.1 accessibility violations. Checks color contrast hints, ARIA attributes, keyboard navigation, semantic HTML, form labels, focus management, and more. Returns issues with severity, suggestions, and WCAG criteria references.
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": {
"component_code": "<component_code>",
"framework": "<framework>"
},
"name": "audit_accessibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component_code | Yes | Component source code to audit for accessibility | |
| framework | Yes | Framework of the component | |
| strict | No | Enable strict mode for additional WCAG AAA checks |