Paint: Gradient wash
paint_gradientDraw linear or radial gradients across a named canvas or area for skies, glows, metal, and shadows. Optionally target a layer.
Instructions
Linear or radial gradient over the canvas or an area — skies, glows, metal, shadows.
Target the canvas by name (created with paint_canvas) and optionally a layer index. Layers, filters and undo work the same for every drawing tool.
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": {
"canvas": "<canvas>",
"colors": "<colors>"
},
"name": "paint_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End point (linear only) | |
| area | No | Restrict to a rectangle; omit for the whole canvas | |
| from | No | Start point (linear) or centre (radial) | |
| type | No | linear | |
| blend | No | Blend mode for this stroke | normal |
| layer | No | Target layer index; defaults to the active layer (see paint_canvas). | |
| shape | No | rect | |
| stops | No | ||
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| colors | Yes | Evenly spaced colours | |
| radius | No | Radial radius | |
| opacity | No | 0..1 strength of this stroke | |
| preview | No | Image reply: auto/thumb = downscaled picture back into the result, full = unpixelated, none = text only | |
| preview_size | No | Longest edge of the returned thumbnail |