List Folders
folder_listList folders in OneDrive with child counts and hierarchy. Specify path or folder ID to retrieve only folders, not files.
Instructions
📖 List only folders (not files) in OneDrive (read-only, safe for unsupervised use)
Returns folders with child counts and hierarchy information.
Caching: Results are cached for 15 minutes (fresh) / 1 hour (stale). Use force_refresh=True to bypass cache and fetch fresh data.
Args: account_id: Microsoft account ID path: Path to list folders from (e.g., "/Documents", default: "/") folder_id: Direct folder ID (takes precedence over path) limit: Maximum folders to return (1-500, default: 50) use_cache: Whether to use cached data if available (default: True) force_refresh: Force refresh from API, bypassing cache (default: False)
Returns: Dictionary with: - folders: List of folder objects with id, name, childCount, path, parentId - _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 | ||
| limit | No | ||
| use_cache | No | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||