create_star
Add a star shape to a Figma document at specified coordinates with customizable size, points, inner radius, fill, and stroke colors.
Instructions
Create a new star in Figma
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": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "create_star"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position (local coordinates, relative to parent) | |
| y | Yes | Y position (local coordinates, relative to parent) | |
| width | Yes | Width of the star | |
| height | Yes | Height of the star | |
| points | No | Number of points (default: 5) | |
| innerRadius | No | Inner radius ratio (0.01-0.99, default: 0.5) | |
| name | No | Optional name for the star | |
| parentId | No | Optional parent node ID to append the star to | |
| fillColor | No | Fill color in RGBA format | |
| strokeColor | No | Stroke color in RGBA format | |
| strokeWeight | No | Stroke weight |