List Files
file_listList files and folders in OneDrive with names, sizes, and modification dates. Filter by type or refresh data using cache bypass.
Instructions
📖 List files and/or folders in OneDrive (read-only, safe for unsupervised use)
Returns items from OneDrive with names, sizes, and modification dates.
Caching: Results are cached for 10 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 from (default: "/") folder_id: Direct folder ID (takes precedence over path) limit: Maximum items to return (1-500, default: 50) type_filter: Filter by type - "all", "files", or "folders" (default: "all") use_cache: Whether to use cached data if available (default: True) force_refresh: Force refresh from API, bypassing cache (default: False)
Returns: List of items matching the filter criteria. Each item includes _cache_status and _cached_at fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| path | No | / | |
| folder_id | No | ||
| limit | No | ||
| type_filter | No | all | |
| use_cache | No | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |