figma_set_fills
Sets fill colors on Figma nodes using hex values or binds design tokens through variable IDs for direct color and token-based fill updates.
Instructions
Set the fill colors on a node. Accepts hex color strings (e.g., '#FF0000') or variable IDs for design token binding. To bind a design token: use { type: 'SOLID', variableId: 'VariableID:8:2258' }. Get variableIds from figma_get_variables or figma_get_node_state. Use figma_resolve_variable to verify what color a token resolves to before binding.
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>",
"fills": "<fills>"
},
"name": "figma_set_fills"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fills | Yes | Array of fill objects — each either a hex color or a variable binding | |
| nodeId | Yes | The node ID to modify |