figma_create_rectangle
Add a rectangle to the current Figma page by specifying position, size, fill color, and corner radius. Use it to create UI elements or placeholders in your design.
Instructions
Create a new rectangle node on the current page.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "figma_create_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Rectangle | |
| width | No | ||
| height | No | ||
| parentId | No | ||
| fillColor | No | Hex color | #cccccc |
| cornerRadius | No | Corner radius |