search_files
Search for files and folders in OneDrive or SharePoint by name, content, or type, with options to filter by site, drive, and file type.
Instructions
Search for files and folders in OneDrive or SharePoint
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (file name, content, etc.) | |
| siteId | No | SharePoint site ID (optional) | |
| site | No | Known SharePoint site alias or canonical URL | |
| siteUrl | No | Canonical SharePoint site URL (optional alternative to siteId) | |
| driveId | No | Drive ID for a specific document library (optional) | |
| fileTypes | No | Filter by file types (e.g., ["xlsx", "docx"]) | |
| limit | No | Maximum number of results | |
| pageToken | No | Opaque pagination token from a previous response (Graph nextLink) |