sp_search_query
Search SharePoint document libraries the user can access. Filter by site, folder, file type, or modification date. Returns file name, path, URL, last-modified date, and author.
Instructions
Search SharePoint document libraries the signed-in user has access to. Returns matching files with name, path, webUrl, last-modified date, and author. Read-only. Filter args: site (URL), folder (path), file_type (extension like 'docx'), modified_after (ISO date). SCOPE: currently driveItem-only (files in document libraries). Searching List items or sites by content is not yet supported — use sp_list_item_list with an OData filter for List-item lookup, sp_site_list for site discovery.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| limit | No | ||
| query | Yes | ||
| folder | No | ||
| file_type | No | ||
| modified_after | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |