search_files
Search Google Drive files by name, content, type, folder, or modification date. Returns metadata only; use read_file_content or download_file for file contents.
Instructions
Search Drive by name, full text, type, folder and modification date. All constraints are ANDed. Returns metadata only; use read_file_content or download_file for contents. Trashed files are excluded unless includeTrashed is true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Substring of the file name (case-insensitive). | |
| type | No | Friendly type filter. | |
| orderBy | No | e.g. "modifiedTime desc" (default), "name", "createdTime desc", "viewedByMeTime desc". | |
| folderId | No | Only direct children of this folder. "root" is My Drive. | |
| fullText | No | Words that must appear in the content, title or description. | |
| mimeType | No | Exact MIME type filter, for when `type` is not specific enough. | |
| ownedByMe | No | Only files the account owns. | |
| pageToken | No | From a previous result to fetch the next page. | |
| maxResults | No | Default 25, max 100. | |
| modifiedAfter | No | RFC 3339 timestamp; only files modified after it. | |
| includeTrashed | No |