kaiten_get_tree
Build a recursive tree of spaces, documents, and document groups from Kaiten, starting from a specified root and limiting depth as needed.
Instructions
Build a nested entity tree from the Kaiten sidebar. Returns spaces, documents, and document groups as a recursive tree with 'children' arrays. Use root_uid to start from a specific entity. Use depth to limit recursion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Max recursion depth (0 = unlimited). Default: 0. | |
| root_uid | No | Start tree from this entity UID. Omit for full tree from roots. |