Set Stroke
node_set_strokeSet stroke color and weight on a Figma node, choosing uniform or per-side weight values.
Instructions
Set a node's stroke color and weight; supports uniform or per-side weights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Alpha component (0-1) | |
| b | Yes | Blue component (0-1) | |
| g | Yes | Green component (0-1) | |
| r | Yes | Red component (0-1) | |
| nodeId | Yes | The ID of the node to modify | |
| weight | No | Uniform stroke weight (used when individual side weights are not provided) | |
| nodeName | Yes | The node's current exact name, passed back verbatim from `node_info`. | |
| strokeTopWeight | No | Top side stroke weight | |
| strokeLeftWeight | No | Left side stroke weight | |
| strokeRightWeight | No | Right side stroke weight | |
| strokeBottomWeight | No | Bottom side stroke weight |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the modified node | |
| error | No |