documents
Manage Adobe Illustrator files by listing, creating, opening, activating, saving, exporting, and closing them, with control over artboards, units, color mode, and PDF presets.
Instructions
Manage documents. Sizes are in session units (configure) unless "units" is given. action: "list" → open documents "new" (width, height, units? (also becomes the session units), color "cmyk"(default)|"rgb", artboards (count, default 1), columns (grid, default min(n,4)), spacing (gap between trim edges, session units, default 20 pt), bleed, artboard_names[], title) → creates and activates it "open" (path) → opens or activates a file "activate" (name) "save"|"save_as" (name? default active; path → save as, format from .ai|.pdf|.eps|.svg or "format"; pdf_preset?; export: [{format, path, artboards: [i]|"all", …export args}] and close:true → save, export, close in one call (not in batch)) "close" (name? default active; unsaved changes need save:true or discard:true) → also lists the documents still open
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": {
"action": "<action>"
},
"name": "documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| path | No | ||
| save | No | ||
| bleed | No | ||
| close | No | ||
| color | No | ||
| title | No | ||
| units | No | ||
| width | No | ||
| action | Yes | ||
| export | No | ||
| format | No | ||
| height | No | ||
| columns | No | ||
| discard | No | ||
| spacing | No | ||
| artboards | No | ||
| pdf_preset | No | ||
| artboard_name | No | name of the first artboard (same as artboard_names:[name]) | |
| artboard_names | No |