Get Folder Tree
folder_get_treeRecursively build a tree of OneDrive folders to display the complete folder hierarchy, helping you understand folder organization.
Instructions
📖 Recursively build a tree of OneDrive folders (read-only, safe for unsupervised use)
Returns a hierarchical tree structure showing all folders and nested subfolders. Useful for understanding OneDrive folder organization.
Caching: Results are cached for 30 minutes (fresh) / 2 hours (stale). Use force_refresh=True to bypass cache and fetch fresh data.
Args: account_id: Microsoft account ID path: Starting path (default: "/") folder_id: Starting folder ID (takes precedence over path) max_depth: Maximum recursion depth (1-25, default: 10) use_cache: Whether to use cached data if available (default: True) force_refresh: Force refresh from API, bypassing cache (default: False)
Returns: Nested tree structure with folders and their children, including: - _cache_status: Cache state (fresh/stale/miss) - _cached_at: When data was cached (ISO format)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| path | No | / | |
| folder_id | No | ||
| max_depth | No | ||
| use_cache | No | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||