canvas_create_rectangle
Creates a named rectangle with specified width, height, and optional corner radius on the active Figma canvas through a companion plugin.
Instructions
Creates a rectangle shape on the active Figma canvas via companion plugin.
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": {
"name": "<name>",
"width": "<width>",
"height": "<height>"
},
"name": "canvas_create_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| width | Yes | ||
| height | Yes | ||
| cornerRadius | No |