set_stroke
Configure stroke color, weight, alignment, dash pattern, line cap, and line join on a Figma vector node to control borders and outlines precisely.
Instructions
Set comprehensive stroke properties on a node: color, weight, position, dash pattern, line cap, and line join.
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 |
|---|---|---|---|
| color | No | Stroke color | |
| nodeId | Yes | Figma node ID | |
| weight | No | Stroke width in pixels | |
| lineCap | No | ||
| lineJoin | No | ||
| position | No | Stroke alignment | |
| dashPattern | No | Dash pattern e.g. [8, 4] for dashed |