illustrator_export_document
Export the active Illustrator document to PNG, JPG, SVG, or PDF with optional scale factor and artboard clipping for raster, vector, and image output.
Instructions
Export the active document to PNG, JPG, SVG, or PDF.
CONTRACT: readOnly=False, destructive=True, idempotent=False, openWorld=True
WHEN TO USE:
Generating raster output (PNG, JPG) with optional scale factor
Exporting vector formats (SVG, PDF)
Getting visual feedback by setting return_image=True (PNG/JPG only)
EXAMPLES: illustrator_export_document(file_path="C:/out/fig.png", format="png", scale=2.0) illustrator_export_document(file_path="C:/out/fig.pdf", format="pdf") illustrator_export_document(file_path="C:/out/fig.png", return_image=True, artboard_only=True)
NOTES:
artboard_only=True clips export to artboard; a pre-check warns if nothing is on it
PDF export uses saveAs (longer timeout)
return_image returns base64 image bytes as ImageContent for visual verification
Overwrites existing file at file_path (destructive to filesystem)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |