il_add
Add rectangles, ellipses, lines, paths, text, images, or editable SVGs to an Illustrator artboard with precise x/y position and width/height, then return the new item.
Instructions
Add artwork: rect, ellipse, line, path (points), text, image (place a file, linked or embedded), or svg (import as editable vectors). Position x/y and size w/h are in points from the artboard top-left, y down. Returns the new item.
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": {
"kind": "<kind>"
},
"name": "il_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| file | No | ||
| fill | No | "#rrggbb", [r,g,b] 0-255, or null for none | |
| font | No | PostScript name, e.g. Gotham-Black | |
| kind | Yes | ||
| name | No | ||
| size | No | ||
| text | No | ||
| embed | No | ||
| layer | No | ||
| closed | No | ||
| points | No | [[x,y],...] for path/line, artboard top-left, y down. Paths with 3+ points close unless closed:false; 2-point paths stay open | |
| radius | No | rounded rect corner radius | |
| stroke | No | ||
| justify | No | point text: x is the left edge, centre or right edge to match | |
| leading | No | ||
| opacity | No | ||
| artboard | No | ||
| tracking | No | ||
| stroke_width | No | ||
| expected_project | No | Document guard: refuse to run unless the active document path contains this text. Use it for every edit to a client file. |