Audit a chart palette
audit_paletteAudit existing chart colors for accessibility: pairwise OKLab separation under normal vision, deuteranopia, protanopia, tritanopia and achromatopsia, plus WCAG 2.2 non-text contrast (3:1) of every color against the chart background. Returns a pass / warn / fail verdict with the numbers behind it. Set ramp=true for sequential or diverging scales, whose steps are meant to be close.
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": {
"colors": "<colors>"
},
"name": "audit_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ramp | No | true for a sequential or diverging scale (skips pairwise separation) | |
| colors | Yes | Palette colors in slot order (CSS syntax) | |
| background | No | Chart background color | #ffffff |