create_shape
Draw rectangles, ellipses, polygons, stars, and lines in Adobe Illustrator with custom fill, stroke, opacity, layer placement, and batch creation. Returns created item IDs and bounds.
Instructions
Create shapes. rect / rounded_rect (r) / ellipse / polygon (sides) / star (points, inner) take a box x, y, w, h (top-left; polygon and star are inscribed in it); line takes x1, y1, x2, y2. Default paint: no fill + 1 pt black stroke when neither fill nor stroke is given (lines: black stroke). Appearance: fill, stroke (colour or "none"), stroke_width (pt), dash (pt; [] = solid), cap, join, opacity, blend, graphic_style (applied first); name, note, hidden, locked. Placement: layer (name, created if missing) or parent (group ref / "layer:Name"); default the active layer. Many at once: items:[{…}, …] — each item's props override the shared ones given at the top level (e.g. shared fill, per-item x/y). Returns {count, items:[{uuid, name, type, box}]}.
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_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| r | No | corner radius of rounded_rect (session units, default 4) | |
| w | No | ||
| x | No | ||
| y | No | ||
| x1 | No | ||
| x2 | No | ||
| y1 | No | ||
| y2 | No | ||
| cap | No | ||
| dash | No | ||
| fill | No | ||
| join | No | ||
| name | No | ||
| note | No | ||
| blend | No | multiply, screen… (blend mode) | |
| inner | No | star inner radius as a fraction of the outer, default 0.5 | |
| items | No | many at once: props as above; top-level ones are shared defaults | |
| layer | No | name (created if missing; stays inactive) or @active | |
| shape | No | default rect | |
| sides | No | polygon, default 6 | |
| hidden | No | ||
| locked | No | ||
| parent | No | group ref or "layer:Name" | |
| points | No | star, default 5 | |
| stroke | No | ||
| opacity | No | ||
| stroke_width | No | ||
| graphic_style | No |