generate_gradient
Create color gradients between two or more colors with selectable interpolation spaces, easing, and hex, CSS, or array output.
Instructions
Generate a smooth gradient between colors with multiple interpolation methods (oklch, oklab, lab, lch, hct, hsl, rgb)
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": {
"colors": "<colors>",
"steps": "<steps>"
},
"name": "generate_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Total number of colors in the gradient, including every input color (must be ≥ number of colors) | |
| colors | Yes | Colors to create gradient between (2-32) | |
| easing | No | Easing function for gradient transition | linear |
| format | No | Output format for the gradient | array |
| interpolation | No | Color space for interpolation (oklch/oklab/lab/lch/hct are perceptually smooth) | lab |