illustrator_document
Create, open, save, close, list, or activate Adobe Illustrator documents programmatically. Manage document lifecycle for automation tasks.
Instructions
Create, open, list, activate, save, or close an Illustrator document.
CONTRACT: readOnly=False, destructive=True, idempotent=False, openWorld=True
WHEN TO USE:
Starting a new illustration (action='create')
Opening an existing .ai file (action='open', file_path required)
Saving current work (action='save', file_path for save-as)
Closing the active document (action='close')
EXAMPLES: Create: {"params": {"action": "create", "width": 800, "height": 600, "color_mode": "RGB"}} Open: {"params": {"action": "open", "file_path": "C:/art/figure.ai"}} Save under a new name: {"params": {"action": "save", "file_path": "C:/art/figure_v2.ai"}} Close, saving first: {"params": {"action": "close", "save_before_close": true}}
NOTES:
close without save_before_close=True discards unsaved changes
open/save interact with the filesystem (openWorld)
list exposes live document tokens without changing the shared pin
activate requires expected_document_token and explicitly changes the pin
save/close reject a mismatching active document; close never repins
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |