color-converter
Convert a color between hex, RGB, HSL, and HSV representations. Auto-detects the input format from the string syntax.
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": {
"input": "<input>"
},
"name": "color-converter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The input color string. Accepts: #RGB, #RRGGBB, #RGBA, #RRGGBBAA, rgb(r,g,b), rgba(r,g,b,a), hsl(h,s%,l%), hsla(h,s%,l%,a). Spaces optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | 6-digit hex color with leading #. | |
| hsl | Yes | HSL representation. | |
| hsv | Yes | HSV representation. | |
| rgb | Yes | RGB representation. | |
| rgba | Yes | RGBA representation. | |
| hex_with_alpha | Yes | 8-digit hex with alpha if alpha < 1, else same as hex. |