Check Contrast
check_contrastCheck WCAG contrast ratio between two color tokens to ensure accessibility. Provide foreground and background token names to verify contrast meets guidelines.
Instructions
Check WCAG contrast ratio between two color tokens
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": {
"foregroundToken": "<foregroundToken>",
"backgroundToken": "<backgroundToken>"
},
"name": "check_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foregroundToken | Yes | Foreground color token name | |
| backgroundToken | Yes | Background color token name |