Simulate a color under colorblindness
simulateColorConvert a hex color to how it appears for protan, deutan, or tritan color blindness.
Instructions
Return how a single hex color appears to someone with a given type of color blindness (protan, deutan, or tritan).
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": {
"color": "<color>",
"type": "<type>"
},
"name": "simulateColor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Color-vision deficiency type | |
| color | Yes | Hex color, e.g. #d7191c |