set_corner_radius
Set corner radius on rectangles or frames to shape cards, tabs, or pill elements. Apply one uniform radius to all corners or define topLeft, topRight, bottomLeft, and bottomRight individually.
Instructions
Set corner radius of a rectangle or frame. Use radius for uniform corners or topLeft/topRight/bottomLeft/bottomRight for individual corners (e.g. pill, tab, card shapes).
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": "set_corner_radius"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Figma node ID | |
| radius | No | Uniform radius for all corners | |
| topLeft | No | ||
| topRight | No | ||
| bottomLeft | No | ||
| bottomRight | No |