search-drive-items
search-drive-itemsSearch for files by keyword within a specific drive or document library. Provide the drive ID and query to return matching items, with automatic pagination.
Instructions
Search files by keyword within one drive (document library).
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": {
"driveId": "<driveId>",
"q": "<q>"
},
"name": "search-drive-items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search keyword | |
| cursor | No | Continuation token (nextCursor of a previous truncated response). Continues that listing; other query inputs are ignored. | |
| driveId | Yes | Value for driveId | |
| maxItems | No | Maximum items to return across pages (default 50, max 500). Pagination via @odata.nextLink is handled automatically; when the result is truncated, pass its nextCursor as cursor to continue. |