figma_set_stroke
Apply a stroke to a Figma node by specifying color, weight, dash pattern, and alignment.
Instructions
Set stroke (border) of a node.
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>",
"color": "<color>"
},
"name": "figma_set_stroke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Color as hex string "#RRGGBB" or object {r,g,b,a?} with 0-1 values | |
| nodeId | Yes | ||
| weight | No | ||
| dashPattern | No | Dash pattern array, e.g. [4,4] for dashed, [2,2] for dotted | |
| strokeAlign | No | INSIDE |