artboards
Manage page frames in Adobe Illustrator documents: list, add, resize, reposition, remove, activate, fit artwork, arrange in grids, and generate print crop marks.
Instructions
Artboards of the active document. Rects are [x, y, w, h] with y = TOP, in session units, measured from the top-left of ARTBOARD 0 (stable: the active artboard changes), the same for reading and writing. action: "list" · "add" (rect; or w, h → placed right of the last artboard with spacing; name) · "update" (index; name; rect or x/y/w/h; move_art:true moves the art on it along) · "remove" (index; art stays) · "activate" (index) · "fit_to_art" (index; to the art on it, or to refs with pad) · "grid_layout" (columns, spacing: rearrange all artboards left→right, top→bottom; their art moves along unless move_art:false) · "crop_marks" (around artboard index, all:true, or refs; offset from the trim (default the document bleed, at least 3 mm), length (default 5 mm), weight pt (0.25); drawn in [Registration] into a group on layer "Crop Marks"). index defaults to the active artboard.
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": "artboards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| all | No | ||
| pad | No | ||
| name | No | ||
| rect | No | [x, y, w, h] in session coordinates | |
| refs | No | ||
| index | No | ||
| layer | No | ||
| action | No | ||
| length | No | ||
| offset | No | ||
| weight | No | ||
| columns | No | ||
| spacing | No | ||
| move_art | No |