set_fills
Apply solid or gradient fills to a Figma node. Supports linear, radial, angular, diamond gradients with stops and transforms.
Instructions
Set a node's fills. SOLID: { type:'SOLID', color:{r,g,b} } (0–1). Gradient: { type:'GRADIENT_LINEAR'|…, gradientStops:[{position,color:{r,g,b,a}}], gradientTransform } (round-trips get_node output). Returns { ok, nodeId }.
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": "set_fills"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fills | Yes | Paints to apply | |
| nodeId | Yes | Figma node id to repaint |