refactor_for_wcag
Automatically refactor HTML, React, Vue, or Angular code to meet WCAG A, AA, or AAA compliance levels, fixing accessibility issues in one pass.
Instructions
Automatically refactor code to be WCAG compliant
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": "refactor_for_wcag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | HTML or React code to refactor | |
| level | No | Target WCAG compliance level | AA |
| format | No | Code format | html |
| autoFix | No | Automatically apply all possible fixes |