Get Layers
get_layersRetrieve a document's layer hierarchy as a tree, including sublayers and optional items, to inspect and understand Illustrator structure before editing.
Instructions
Get layer structure as a tree
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_items | No | Include items within each layer | |
| 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. | |
| include_sublayers | No | Include sublayers |