create_rectangle
Creates a rectangle node in Figma with optional fill, stroke, corner radius, and positioning so you can add styled rectangular shapes to a design.
Instructions
Create a rectangle node with optional fill, stroke, and corner radius.
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 | ||
| y | No | ||
| name | No | ||
| width | No | ||
| height | No | ||
| channel | No | Optional Figma document channel, fileKey, or documentName when multiple Figma files are open | |
| fillHex | No | ||
| parentId | No | ||
| strokeHex | No | ||
| cornerRadius | No | ||
| strokeWeight | No |