set_gradient_fill
Apply a linear, radial, angular, or diamond gradient fill to a design node, specifying color stops and angle.
Instructions
Set a gradient fill on a node
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": {
"nodeId": "<nodeId>",
"stops": "<stops>"
},
"name": "set_gradient_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Angle of the gradient in degrees (for linear gradients) | |
| stops | Yes | Array of gradient color stops | |
| nodeId | Yes | The ID of the node to set the gradient on | |
| gradientType | No | Type of gradient | GRADIENT_LINEAR |