illustrator_set_reference
Set or clear a reference image on a locked, dimmed reference layer in Adobe Illustrator for tracing; omit the file path to remove it.
Instructions
Set or clear a reference image on a locked background layer for tracing.
CONTRACT: readOnly=False, destructive=True, idempotent=True, openWorld=True
WHEN TO USE:
Preparing a reference image overlay before manual or automated tracing
Clearing a previous reference (omit file_path)
KEY CONCEPTS: Places image on a dedicated 'reference' layer at the bottom of the stack. Layer is locked, dimmed, and non-printable to prevent accidental edits. Calling again with the same file replaces the previous reference (idempotent).
EXAMPLES: illustrator_set_reference(file_path="C:/ref/sketch.png", opacity=50) illustrator_set_reference() -- clears the reference layer
NOTES:
Removal mode (no file_path) is destructive — deletes the reference layer
Uses the active artboard for fit/center calculations
Extracts dominant colors from reference image if Pillow is available
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |