set_paints
Replace a node's fills or strokes with solid paints—optionally bound to COLOR variables—or gradients to apply consistent styling in Figma.
Instructions
Replace the fills or strokes of a node with solid paints (optionally bound to COLOR variables) and/or gradients. Images: use set_image_fill.
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>",
"target": "<target>",
"paints": "<paints>"
},
"name": "set_paints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| paints | Yes | ||
| target | Yes |