canvas_audit
Audit live canvas for accessibility issues: contrast ratios, touch target sizes, and font sizes. Returns failing node IDs for targeted fixes.
Instructions
Accessibility audit of the live canvas via the plugin (scope: nodeId → selection → current page). Checks: 'contrast' (WCAG AA/AAA text-vs-background ratios, large-text aware), 'touch' (interactive elements ≥44×44, detected by reactions or button/input-ish names), 'text' (minimum font size), or 'all'. Returns per-check counts + failing nodes with ids so fixes can target them directly.
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": "canvas_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | ||
| level | No | ||
| nodeId | No | ||
| minTouch | No | ||
| minFontSize | No |