illustrator_get_document
Retrieve Illustrator canvas state as a JSON tree—layers, items, positions, properties, or app info—to inspect structure before edits.
Instructions
Get complete document information and structure as a JSON tree.
CONTRACT: readOnly=True, destructive=False, idempotent=True, openWorld=False
WHEN TO USE:
Understanding canvas state before writing modification scripts
Inspecting layers, items, positions, and properties
Getting Illustrator application info (scope='app')
This reports structure, not appearance. For what the page looks like, call illustrator_observe; for whether it is fit to export, call illustrator_preflight_check
OPTIONS: scope: 'document' (default), 'app', or 'both' max_items: items per layer, 1-5000 (default 200) max_layers: layers to return, 1-200 (default 50) offset: skip first N items per layer (for paging) layer_name / layer_index: filter to single layer
EXAMPLES: Document structure: {"params": {}} Application info, with no document open: {"params": {"scope": "app"}} One layer, paginated: {"params": {"layer_name": "Layer 1", "offset": 200, "max_items": 200}} Symbol definitions and instances, without placing anything: {"params": {"scope": "symbols"}} One symbol, names and counts only: {"params": {"scope": "symbols", "symbol_name": "icon-star", "symbol_contents": false}}
NOTES:
If a layer is truncated, response includes truncated=true and nextOffset
scope='both' returns {document: {...}, app: {...}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |