canvas_set_gradient
Apply a gradient to the canvas background using a built-in preset or custom color stops and angle, enabling quick background styling for design compositions.
Instructions
Applies a modern gradient to the canvas background. You can specify a built-in preset ("cyber", "sunset", "emerald", "space", "gold", "candy", "noir") or custom colors array and angle.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "canvas_set_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Angle in degrees (0 = top to bottom, 90 = left to right, 135 = diagonal) | |
| colors | No | Array of hex/rgba color stops e.g. ["#6C5CFF", "#FF3366"] | |
| preset | No | Preset gradient name |