Set or clear a stroke
figma_set_strokeReplace a Figma node’s strokes with a solid color, set stroke weight and opacity, or remove all strokes. Designed for borders and outlines.
Instructions
Replaces a node’s strokes with one solid colour, and optionally sets the stroke weight. Pass remove: true to take the stroke off entirely. Borders in Figma are strokes, not fills — a row outline or an icon drawn as an outline needs this rather than figma_set_fill.
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>"
},
"name": "figma_set_stroke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Hex colour, like "#1e88e5". Omit only with remove. | |
| nodeId | Yes | The node to stroke. | |
| remove | No | Remove every stroke instead of setting one. | |
| weight | No | Stroke weight in pixels. Left alone when omitted. | |
| opacity | No | Stroke opacity, 0 to 1. Default 1. |