set_strokes
Set stroke color and weight on a Figma node. Use append mode to add a stroke without replacing existing ones.
Instructions
Set the stroke color and weight on a single node (takes one nodeId, not an array). Use mode='append' to stack a new stroke on top of existing strokes instead of replacing them.
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>",
"color": "<color>"
},
"name": "set_strokes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'replace' (default) overwrites all strokes; 'append' stacks on top of existing strokes | |
| color | Yes | Stroke color as hex e.g. #000000 | |
| nodeId | Yes | Node ID in colon format e.g. '4029:12345' | |
| strokeWeight | No | Stroke weight in pixels (default 1) |