m365_files_search
Search OneDrive for files matching a query and return item IDs, paths, and basic metadata, not file content.
Instructions
Find matching items across your OneDrive, returning IDs, paths and basic metadata, not file content. Use m365_files_list to browse a known folder, m365_files_info for an item's details, or m365_files_read for text content. top caps total results across internal pages.
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": "m365_files_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum total matches to return, not page size | |
| query | Yes | Search text matched by OneDrive, e.g. quarterly report |