create_shape
Create editable vector primitives (rectangles, rounded rectangles, ellipses, polygons, or stars) using top-left artboard coordinates for precise layout in Illustrator.
Instructions
Create editable vector primitives (rectangle, rounded_rectangle, ellipse, polygon, or star) using top-left artboard coordinates.
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": {
"shape": "<shape>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "create_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Horizontal offset from active artboard top-left | |
| y | Yes | Vertical offset downward from active artboard top-left | |
| name | No | Layer item name (recommended so Pathfinder/Gradients can reference it) | |
| shape | Yes | Vector shape primitive | |
| sides | No | Number of sides/points for polygon or star | |
| width | Yes | Bounding width in pixels | |
| height | Yes | Bounding height in pixels | |
| fillHex | No | Optional fill hex color | |
| opacity | No | Item opacity (0-100) | |
| strokeHex | No | Optional stroke hex color | |
| strokeWidth | No | Stroke width in points | |
| cornerRadius | No | Corner radius for rounded_rectangle | |
| innerRadiusRatio | No | Star inner radius ratio (default 0.5) |