figma_set_strokes
Set a Figma node's border/stroke color and weight using hex or CSS colors, and bind it to a design-token variable for consistent color control.
Instructions
Set the stroke (border) on a node. Accepts hex or CSS colors (including oklch() and color(display-p3 …)) and an optional stroke weight. To bind a stroke to a design token / color variable, pass that stroke's variableId — works on any Figma plan via the bridge.
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>",
"strokes": "<strokes>"
},
"name": "figma_set_strokes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The node ID to modify | |
| strokes | Yes | Array of stroke objects | |
| strokeWeight | No | Stroke thickness in pixels |