set_fill
Set fill properties on Figma nodes, including solid, linear, radial, and multiple fills. Specify color, opacity, and gradient parameters.
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 |
|---|---|---|---|
| nodeId | Yes | Target node ID | |
| type | No | Fill type (default: SOLID) | |
| color | No | Solid fill hex color | |
| gradient | No | { angle, stops: [{ position: 0-1, color: "#hex" }] } | |
| opacity | No | Fill opacity 0-1 | |
| fills | No | Array of fill objects for multiple fills |