set_stroke
Set stroke color and weight on a Figma node, with options for uniform or individual side thicknesses.
Instructions
Set the stroke color and weight of a node in Figma. Supports both uniform weight and individual side weights (top, bottom, left, right).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to modify | |
| nodeName | Yes | Name of the node to modify | |
| r | Yes | Red component (0-1) | |
| g | Yes | Green component (0-1) | |
| b | Yes | Blue component (0-1) | |
| a | No | Alpha component (0-1) | |
| weight | No | Uniform stroke weight (used when individual side weights are not provided) | |
| strokeTopWeight | No | Top side stroke weight | |
| strokeBottomWeight | No | Bottom side stroke weight | |
| strokeLeftWeight | No | Left side stroke weight | |
| strokeRightWeight | No | Right side stroke weight |