create_rectangle
Add a rectangle to a Figma canvas by specifying width, height, position, parent frame, layer name, and fill color.
Instructions
Create a rectangle on the Figma canvas.
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 |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Layer name | |
| width | Yes | ||
| height | Yes | ||
| parentId | No | Parent frame/group node ID | |
| fillColor | No |