figma_set_fill
Set a Figma node's fill using solid colors, gradients, or images. Provide the node ID, then pass a color shorthand or a fills array for multiple paint layers.
Instructions
Set fill of a node. Supports solid colors, gradients, and images.
Simple solid: { nodeId, color: {r,g,b} } Gradient: { nodeId, fills: [{ type:"GRADIENT_LINEAR", gradientStops:[{color:{r,g,b,a},position:0},{color:{r,g,b,a},position:1}] }] } Image: { nodeId, fills: [{ type:"IMAGE", imageUrl:"https://..." }] } Multiple fills: pass multiple items in the fills array.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Simple solid color (shorthand). Ignored if 'fills' is provided. | |
| fills | No | Full paint array — supports SOLID, GRADIENT_LINEAR/RADIAL/ANGULAR/DIAMOND, and IMAGE fills. | |
| nodeId | Yes |