figma_create_rectangle
Creates rectangles in the open Figma file using precise x, y, width, and height values, with optional fill, corner radius, and parent placement for pixel-level layout reconstruction.
Instructions
创建矩形。
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": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "figma_create_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| fill | No | ||
| name | No | ||
| width | Yes | ||
| height | Yes | ||
| parentId | No | ||
| cornerRadius | No |