set_fill
Apply fills to Figma nodes with support for solid, gradient, and multiple fill types. Specify color, opacity, or gradient stops to update node styling.
Instructions
Set fill on a node. Supports solid, linear gradient, radial gradient, and multiple fills.
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>"
},
"name": "set_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Fill type (default: SOLID) | |
| color | No | Solid fill hex color | |
| fills | No | Array of fill objects for multiple fills | |
| nodeId | Yes | Target node ID | |
| opacity | No | Fill opacity 0-1 | |
| gradient | No | { angle, stops: [{ position: 0-1, color: "#hex" }] } |