audit_design_md
Audit DESIGN.md color tokens for WCAG/APCA contrast, color-blind collisions, duplicate or broken references, and missing primary tokens. Returns failing pairs and same-hue fix suggestions.
Instructions
Audit the color tokens of a DESIGN.md file (Google Labs design-system format: YAML front matter / ```yaml blocks with colors and components). Checks WCAG + APCA contrast for pairs declared in components (backgroundColor/textColor) and pairs inferred from token names (on-X ↔ X, text ↔ surface), color-blind collisions between accent/status colors, exact and near-duplicate tokens, disliked colors, broken {colors.x} references and a missing primary. Suggests same-hue fixes for failing pairs. Pass the file's full text.
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": {
"designMd": "<designMd>"
},
"name": "audit_design_md"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| designMd | Yes | Full text of the DESIGN.md file | |
| maxItems | No | Maximum rows listed per report section | |
| cvdThreshold | No | ΔE2000 below which two accent/status colors count as indistinguishable under color-vision deficiency | |
| textThreshold | No | Minimum WCAG contrast for text pairs (4.5 = AA normal text, 7 = AAA) |