set_gradient_fill
Replace a Figma node’s fills with a linear, radial, angular, or diamond gradient by specifying the node ID, gradient type, angle, and color stops.
Instructions
Replace a node's fills with a linear, radial, angular or diamond gradient
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>",
"gradientType": "<gradientType>",
"stops": "<stops>"
},
"name": "set_gradient_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Degrees: 0 runs left to right, 90 (default) top to bottom | |
| stops | Yes | Colour stops from 0 to 1 | |
| nodeId | Yes | The node's ID | |
| gradientType | Yes |