Set a solid fill
figma_set_fillReplace all fills on a node with a single solid color, then read back the value to confirm the write. Replaces every existing fill; strokes require a separate tool. One call equals one undo step.
Instructions
Replaces a node’s fills with one solid colour, and answers with the colour read back off the node — so a write that did not land is visible without a screenshot. It replaces every fill the node had, which is worth knowing before pointing it at a gradient or a photograph; the answer names what was there. Borders are strokes, not fills: use figma_set_stroke for those. One call is one undo step, so the designer takes it back with a single Cmd-Z.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Hex colour, like "#1e88e5". | |
| nodeId | Yes | The node to fill. | |
| opacity | No | Fill opacity, 0 to 1. Default 1. |