check_contrast
Checks if text and background colors meet WCAG AA/AAA contrast, returning ratio, level, and correction suggestions when contrast fails.
Instructions
Verifica se um par de cores tem contraste adequado (WCAG AA/AAA). Use sempre que definir cor de texto sobre fundo. Retorna ratio, nível WCAG e sugestão de correção se falhar.
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": {
"foreground": "<foreground>",
"background": "<background>"
},
"name": "check_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| largeText | No | Se é texto grande (>18px ou >14px bold) — threshold menor | |
| background | Yes | Cor do fundo em hex: ex #FAFAF9 | |
| foreground | Yes | Cor do texto em hex: ex #1A1917 |