create_rectangle
Create a rectangle shape in Figma by specifying width, height, fill color, corner radius, opacity, and parent node for accurate placement.
Instructions
Create a rectangle shape.
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": {
"width": "<width>",
"height": "<height>"
},
"name": "create_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | Fill color hex | |
| name | No | Name (default: Rectangle) | |
| width | Yes | Width | |
| height | Yes | Height | |
| opacity | No | Opacity 0-1 | |
| parentId | No | Parent node ID | |
| cornerRadius | No | Corner radius |