get_folder_structure
Returns the folder hierarchy as a tree, revealing content domains and folder IDs to plan targeted retrieval before browsing documents.
Instructions
Orientation step: show the folder hierarchy as a tree (like tree -d). Call this before browse_documents() to plan targeted retrieval — folder names reveal content domains (e.g. "Research", "Finance") and return folder IDs you pass to browse_documents(folder_id=…). Wait for this result before issuing browse_documents() or search_documents(). For folder_id="root" (default), returns the entire folder tree; for a specific folder_id, returns that subtree only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Human-readable folder path (e.g. "Research/Papers/2024"). Alternative to folder_id — copy a `path` value from any browse_documents() or search_documents() response. When provided, folder_id is ignored. | |
| depth | No | Maximum depth to traverse (1-10, default 10). Use a smaller value for very large folder trees. | |
| folder_id | No | Subtree root (default "root" = entire library). Pass a specific folder ID to get only that subtree, or "shared-with-me"/"following" for the read-only folders at the library root. Copy any folder_id verbatim from a browse/tree response, never construct one. Ignored when `path` is provided. | |
| include_counts | No | Include file_count and children_count per folder (default true). Set false to reduce response size; the root node of the tree always carries its counts regardless of this flag. |