Search Files
files_searchSearch OneDrive and SharePoint for files the signed-in user can access by keywords in name or content; filter by site, file type, or modification date.
Instructions
Find documents across OneDrive and SharePoint sites the signed-in user can open, by keywords in name or content. Filter by site, file type and modification date. Returns location, last editor, webUrl, driveId and itemId for files_get_download_url. SharePoint results also require the mcp.sharepoint App Role. Chinese intents / 中文意图: 搜索文档, 查找SharePoint文件, 查找OneDrive文件, 找某个项目的Word或PDF, 搜索网盘文件.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum files to return. Defaults to 20. | |
| site | No | Limit to one SharePoint site: its URL, for example https://tenant.sharepoint.cn/sites/Project, or site ID. | |
| query | Yes | Keywords from the file name or content. | |
| scope | No | Where to search. Defaults to all. | |
| fileTypes | No | File extensions such as docx, pdf, pptx, xlsx. | |
| modifiedAfter | No | Only files modified at or after this ISO date or date-time. |