set_gradient_fill
Apply a two-color gradient fill to any Figma node using start and end hex colors, plus an optional angle.
Instructions
Set a gradient fill with a simple angle + 2 colors API.
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>",
"startColor": "<startColor>",
"endColor": "<endColor>"
},
"name": "set_gradient_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Gradient angle in degrees (default: 180) | |
| nodeId | Yes | Target node | |
| endColor | Yes | End color hex | |
| startColor | Yes | Start color hex |