set_fills
Set fill color on a single Figma node by providing nodeId and hex color. Choose to replace existing fills or append a new fill on top.
Instructions
Set the fill color on a single node (takes one nodeId, not an array). Use mode='append' to stack a new fill on top of existing fills instead of replacing them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'replace' (default) overwrites all existing fills; 'append' stacks this fill on top of existing ones | |
| color | Yes | Fill color as hex: #RRGGBB e.g. #FF5733 or #RRGGBBAA e.g. #FF573380 for 50% alpha | |
| nodeId | Yes | Node ID in colon format e.g. '4029:12345' | |
| opacity | No | Fill opacity 0–1 (default 1). Combines multiplicatively with any alpha in the color hex. |