get_tree
Retrieve the active document's layer, sublayer, group, and item hierarchy as structured tree data to inspect structure, counts, and optional bounds for planning edits.
Instructions
Outline of the active document: layers → sublayers → groups → items, as {tree:[{layer, count, sublayers?, children:[{type, uuid, name, text?, count?, children?}]}], note?}. root: "layer:Name" or a group ref (default all layers). depth default 2; limit = children shown per container (default 50, then {more:N}); max_nodes = items in the whole answer (default 300). boxes:true adds [x,y,w,h]. Within a layer, sublayers are listed apart from items.
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_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| boxes | No | ||
| depth | No | ||
| limit | No | ||
| max_nodes | No |