search
Find Microsoft 365 content using KQL or natural language, then filter, sort, and aggregate results by file type, date, site, and people.
Instructions
Powerful unified search across Microsoft 365 with intelligent features, aggregations, and content enrichment
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Pagination offset (default: 0) | |
| limit | No | Max results (default: 25, max: 500) | |
| query | Yes | Search query (supports KQL syntax and natural language) | |
| siteId | No | Search within specific SharePoint site | |
| sortBy | No | Sort configuration | |
| filters | No | Additional KQL filters | |
| dateRange | No | Date range filter | |
| fileTypes | No | Filter by file extensions (e.g., ['docx', 'xlsx', 'pdf']) | |
| aggregateBy | No | Fields to aggregate for filters (default: fileType, lastModifiedBy) | |
| entityTypes | No | Types to search (default: driveItem, listItem). Note: message/event cannot be combined with driveItem/listItem | |
| peopleSearch | No | Enable people-specific search mode | |
| enrichContent | No | Extract additional content and metadata (default: true) | |
| includeExcelData | No | Extract Excel workbook structure (default: true) |