illustrator_place_file
Import external images or vector files into the active Illustrator document, with options to link, embed, or trace raster images into editable vectors.
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: Place a linked image: {"params": {"file_path": "C:/img/photo.png", "x": 100, "y": 50, "linked": true}} Place and auto-trace: {"params": {"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 |