get_tree_summary
Retrieve a compact indented tree of a node's subtree with component type, name, ID, and dimensions. Use for orientation before deeper inspection.
Instructions
Get a compact text summary of a node's subtree hierarchy. Returns an indented tree showing each node's component type, name, ID, and dimensions. Much cheaper than getJSX for understanding structure — use this for orientation before diving into specific nodes. Returns an error if the node does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum depth to traverse (default 3, max 10). Nodes beyond this depth show a child count hint instead. | |
| fileId | No | Optional. The Paper file ID this call should act on. Pass it to reliably target a specific file when several are open at once (e.g. multiple agents from the same session working in parallel). Omit to use the most recently opened file in the session. | |
| nodeId | Yes | The ID of the root node to summarize |