parse_color
Convert color strings into hex, RGB, and HSL formats. Handles hex, rgb, hsl, and CSS named colors.
Instructions
Parse a color string and return it in hex, rgb, and hsl formats. Accepts hex (#fff, #ffffff), rgb(r,g,b), hsl(h,s%,l%), and CSS named colors.
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>"
},
"name": "parse_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Color to parse (e.g. '#ff6600', 'rgb(255,102,0)', 'tomato') |