set_strokes
Apply SOLID or gradient strokes to a Figma node, adjusting weight, alignment, dash pattern, and per-side weights. Returns ok and nodeId.
Instructions
Set a node's strokes (SOLID or gradient paints, same shape as set_fills) plus optional strokeWeight, strokeAlign (INSIDE / OUTSIDE / CENTER), dashPattern (dashes), and per-side weights (strokeTopWeight / strokeRightWeight / strokeBottomWeight / strokeLeftWeight — for nodes that support individual stroke weights, e.g. a border-bottom-only divider). A per-side weight overrides strokeWeight for that side. Any field may be omitted to leave it unchanged. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Figma node id | |
| strokes | Yes | Stroke paints | |
| dashPattern | No | Dash/gap lengths in px, e.g. [4, 2]; [] for a solid stroke | |
| strokeAlign | No | Stroke position relative to the geometry | |
| strokeWeight | No | Uniform stroke thickness in px | |
| strokeTopWeight | No | Top side weight in px | |
| strokeLeftWeight | No | Left side weight in px | |
| strokeRightWeight | No | Right side weight in px | |
| strokeBottomWeight | No | Bottom side weight in px |