color_convert
Color converter — hex/rgb/hsl plus hsv, cmyk, lab (D50) and oklch
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": "color_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | Blue, 0-255 | |
| g | No | Green, 0-255 | |
| r | No | Red, 0-255 (with clamp true, values outside are clamped) | |
| hex | No | A hex color, for example #1a73e8 or 1a73e8 (3 or 6 digits). | |
| clamp | No | Clamp r, g, b to 0-255 and report each change in 'clamped', instead of an error |