css_gradient
Create linear, radial, or conic CSS gradients with custom direction, color stops, and browser prefixes.
Instructions
Generate CSS gradient code. Supports linear, radial, and conic gradients with direction, stops, and browser prefixes.
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": {
"type": "<type>",
"colors": "<colors>"
},
"name": "css_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Gradient type: linear, radial, conic | |
| colors | Yes | Array of colors (strings) or color stops ({color, position}). Minimum 2. | |
| direction | No | Direction/shape. Linear: 'to right', '45deg'. Radial: 'circle at center', 'ellipse at top'. Conic: 'from 0deg at center'. | |
| includePrefix | No | Include -webkit- browser prefix. Default: true. |