color_mix
Mix, blend, lighten, darken, saturate, or desaturate colors using customizable ratios, weights, and amounts for precise adjustments.
Instructions
Mix, blend, lighten, darken, saturate, or desaturate colors. For mix/blend provide 2+ colors; for lighten/darken/saturate/desaturate provide 1 color and an amount.
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": {
"operation": "<operation>",
"colors": "<colors>"
},
"name": "color_mix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | Blend ratio from 0 (first color) to 1 (second color). Default: 0.5. | |
| amount | No | Amount for lighten/darken/saturate/desaturate (0-100). Default: 10. | |
| colors | Yes | Array of colors in any supported format | |
| weights | No | Optional weights for mixing (same length as colors). Default: equal weights. | |
| operation | Yes | Operation: mix, blend, lighten, darken, saturate, desaturate |