color_contrast
WCAG contrast ratio between two hex colors (AA/AAA). When: WCAG contrast ratio for UI color pairs.
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": {
"fg": "<fg>",
"bg": "<bg>"
},
"name": "color_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | Yes | ||
| fg | Yes |