Get Document Structure
get_document_structureRetrieve the hierarchical tree of layers, groups, and objects in an Illustrator document to map its structure, with optional depth, artboard, and coordinate filters.
Instructions
Get tree structure of layers, groups, and objects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum traversal depth (unlimited if omitted) | |
| artboard_index | No | Filter by artboard index (0-based integer) | |
| coordinate_system | No | Coordinate system. Auto-detected from document by default (CMYK/print → document, RGB/web → artboard-web). artboard-web: origin at active artboard top-left, Y-down. document: Illustrator native coords, origin at bottom-left, Y-up. Call get_document_info to check which system is active. |