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.
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": "figma_set_fill"
}
}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 |