illustrator_place_file
Place EPS, AI, PDF, SVG, PNG, or JPG files into an Illustrator document; link or embed assets, import raster images, and vectorize them with Image Trace.
Instructions
Place an external file (EPS, AI, PDF, image) into the document.
CONTRACT: readOnly=False, destructive=True, idempotent=False, openWorld=True
WHEN TO USE:
Importing raster images (PNG, JPG) into Illustrator
Placing vector files (EPS, AI, PDF, SVG)
Vectorizing raster images via Image Trace (trace=True)
KEY CONCEPTS: linked=True (drafting) — file updates automatically when source changes linked=False (final) — file is embedded and fully editable embed_editable=True — opens PDF, copies content as editable vectors (slower) trace=True — place raster, then run Image Trace to vectorize
EXAMPLES: illustrator_place_file(file_path="C:/img/photo.png", x=100, y=50, linked=True) illustrator_place_file(file_path="C:/img/photo.png", trace=True, trace_preset="6 Colors")
NOTES:
trace + expand=True: editable paths, higher DOM complexity
trace + expand=False: live trace PluginItem, lighter but limited editability
High-complexity images may produce >2000 paths (warning emitted)
Reads external files from filesystem (openWorld)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |