illustrator_document
Create, open, save, or close Adobe Illustrator documents for starting illustrations, loading .ai files, saving work, or closing active files.
Instructions
Create, open, 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: illustrator_document(action="create", width=800, height=600, color_mode="RGB") illustrator_document(action="open", file_path="C:/art/figure.ai") illustrator_document(action="save", file_path="C:/art/figure_v2.ai") illustrator_document(action="close", save_before_close=True)
NOTES:
close without save_before_close=True discards unsaved changes
open/save interact with the filesystem (openWorld)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |