audit_a11y
Run an accessibility audit on UI components to detect WCAG violations and impacted areas before shipping.
Instructions
Run an accessibility audit (axe-core) on a rendered component. Returns WCAG violations with impact level, description, and affected HTML nodes. Use this to catch a11y issues before shipping.
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": {
"code": "<code>"
},
"name": "audit_a11y"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Component code to audit | |
| framework | No | Framework: html, react, vue, or svelte | react |
| width | No | Viewport width (px) | |
| height | No | Viewport height (px) |