set_stroke
Add a stroke border to any Figma node by specifying color, weight, alignment, opacity, and dash pattern for precise styling.
Instructions
Add border/stroke to 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>"
},
"name": "set_stroke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| align | No | Stroke alignment (default: INSIDE) | |
| color | No | Stroke color hex | |
| nodeId | Yes | Target node ID | |
| weight | No | Stroke weight (default: 1) | |
| opacity | No | Stroke opacity | |
| dashPattern | No | Dash pattern array, e.g. [4, 4] |