set_stroke_variable
Bind color variables to node strokes for theme-compatible border colors in Figma designs.
Instructions
Bind a color variable to a node's stroke. Use this for theme-compatible border colors.
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>",
"variableId": "<variableId>"
},
"name": "set_stroke_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to modify | |
| variableId | Yes | The ID of the color variable to bind | |
| strokeIndex | No | Index of the stroke to modify (default: 0) |