illustrator_preflight_check
Validate an Adobe Illustrator document before export. Detect out-of-bounds items, zero-size objects, empty text frames, and locked layers without modifying the file.
Instructions
Perform observational validation on the active document.
CONTRACT: readOnly=True, destructive=False, idempotent=True, openWorld=False
WHEN TO USE:
Before export to catch common issues
Validating document state after a series of modifications
KEY CONCEPTS: Checks for: items outside artboard bounds, zero-size items, empty text frames, locked layers/items. Does NOT modify the document.
EXAMPLES: Check supplied publication thresholds: { "params": { "publication": { "output_width_mm": 89, "min_font_pt": 5, "min_stroke_pt": 0.25, "min_image_ppi": 300 } } } Check the active artboard before exporting: {"params": {}} Check one artboard, counting any overlap as on-artboard: {"params": {"artboard_index": 0, "policy": "intersects"}}
NOTES:
Returns ok=true only when the scan ran and found no non-info issues
Locked layers/items are reported as info and do not fail the check
If the scan cannot be read back, the result is an error with diagnostics.scan_status='unavailable' — never a passing check
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |