Check accessibility
mzizi_check_accessibilityCheck a design against the Mzizi floors. Colours: the WCAG 2.x contrast ratio of a foreground on a background (#RRGGBB), with the AA-large, AA and AAA verdicts and whether it meets the Mzizi floor of 7:1. Spacing: pass any of insetPx (text to container edge), controlGapPx, labelGapPx, itemGapPx (gaps) and leading (body line height) and each is compared with the spacing floor the pinned registry states (nothing may go under it): the spacing floor (14px inset, 7px gaps between controls, 7px between a label and its field, 7px between items, 1.5 body leading). Give colours, spacing values, or both. Computed locally, no network. It does not compute APCA Lc or simulate colour-vision deficiency; read the Mzizi accessibility doctrine (mzizi_get_tokens family=accessibility) for those rules. To check a project's source rather than values, run mzizi check (@nyuchi/mzizi-cli).
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": "mzizi_check_accessibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| insetPx | No | Padding between text and its container edge, in px. | |
| leading | No | Body line height as a unitless ratio, e.g. 1.5. | |
| itemGapPx | No | Gap between sibling items in a list, grid or toolbar, in px. | |
| background | No | Background colour as #RRGGBB, e.g. #FFFFFF. Give with foreground. | |
| foreground | No | Foreground colour as #RRGGBB, e.g. #1B1A17. Give with background. | |
| labelGapPx | No | Gap between a label and its field, in px. | |
| controlGapPx | No | Gap between adjacent interactive controls, visible edge to visible edge, in px. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| passes | No | ||
| spacing | No | ||
| background | No | ||
| foreground | No | ||
| contrastRatio | No | ||
| meetsMziziFloor | No | ||
| spacingUnavailable | No |