set_corner_radius
Modify the corner radius of a Figma node by specifying the radius in pixels and optional corner settings for top-left, top-right, bottom-right, and bottom-left corners.
Instructions
Sets the corner radius of a node in Figma.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the updated node's ID.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
corners | No | Optional array of four booleans indicating which corners to apply the radius to, in order: [top-left, top-right, bottom-right, bottom-left]. | |
radius | Yes | The corner radius to set, in pixels. Must be a non-negative number. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"corners": {
"description": "Optional array of four booleans indicating which corners to apply the radius to, in order: [top-left, top-right, bottom-right, bottom-left].",
"items": {
"type": "boolean"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
},
"radius": {
"description": "The corner radius to set, in pixels. Must be a non-negative number.",
"minimum": 0,
"type": "number"
}
},
"required": [
"radius"
],
"type": "object"
}