set_stroke
Add or modify border stroke on Figma elements such as frames, cards, buttons, or rectangles with specified color, width, and alignment.
Instructions
Add or update border stroke on a frame, card, button, or rectangle
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_stroke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Hex stroke color (e.g. '#E2E8F0') | |
| nodeId | Yes | Target node ID | |
| weight | No | Stroke border width in pixels (defaults to 1) | |
| strokeAlign | No | Border alignment |