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.
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>",
"nodeName": "<nodeName>",
"r": "<r>",
"g": "<g>",
"b": "<b>"
},
"name": "node_set_stroke"
}
}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 |