Search Files
search_filesSearch for files in OneDrive by name or content across all accessible folders. Returns matching files with metadata.
Instructions
📖 Search for files in OneDrive (read-only, safe for unsupervised use)
Searches file names and content across all accessible OneDrive folders. Automatically routes to the appropriate API based on account type:
Personal accounts: Uses OneDrive-specific search
Work/school accounts: Uses unified search API
Args: query: Search query string (1-512 characters) account_id: Microsoft account ID limit: Maximum results to return (1-500, default: 50) use_cache: Whether to use cache (default: True) force_refresh: Bypass cache and fetch fresh data (default: False)
Returns: List of matching files with metadata
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| account_id | Yes | ||
| limit | No | ||
| use_cache | No | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |