Add a rectangle
figma_create_rectangleCreate a rectangle in the current Figma file, with optional fill, size, position, corner radius, and parent container. Use it for dividers, bars, backgrounds, or placeholders; omit fill for an empty shape.
Instructions
Creates a rectangle. The workhorse shape: dividers, bars, backgrounds, placeholders. Omit the fill for an empty one.
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 | ||
| fill | No | Hex colour. Omit for no fill. | |
| name | No | ||
| width | No | Default 100. | |
| height | No | Default 100. | |
| parentId | No | Put it inside this node. Default: the current page. | |
| cornerRadius | No |