figma_create_rectangle
Create a rectangle shape in Figma with customizable size, position, fill, stroke, and corner radius. Add it to a specific parent frame as part of your design.
Instructions
Create a 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": {
"width": "<width>",
"height": "<height>"
},
"name": "figma_create_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Rectangle | |
| width | Yes | ||
| height | Yes | ||
| opacity | No | ||
| parentId | No | ||
| fillColor | No | Color as hex string "#RRGGBB" or object {r,g,b,a?} with 0-1 values | |
| strokeColor | No | Color as hex string "#RRGGBB" or object {r,g,b,a?} with 0-1 values | |
| cornerRadius | No | ||
| strokeWeight | No |