create_rectangle
Create a rectangle or box element in Figma for cards, buttons, or dividers by specifying position, size, fill, and corner radius.
Instructions
Create a rectangle or box element (useful for cards, buttons, visual dividers)
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": "create_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate | |
| y | No | Y coordinate | |
| fill | No | Hex color fill, e.g. '#3B82F6' | |
| name | No | Name of the rectangle | |
| width | No | Width in pixels | |
| height | No | Height in pixels | |
| parentId | No | Parent Frame node ID | |
| cornerRadius | No | Corner radius in pixels |