search_files
Find files in Google Drive by name, type, or other criteria using search queries.
Instructions
Search for files in Google Drive using query syntax.
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_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Google Drive search query. Examples: "name contains 'report'", "mimeType = 'application/pdf'". | |
| corpora | No | Source of files: 'user' (default), 'drive', or 'allDrives'. | |
| drive_id | No | ID of the shared drive when corpora='drive'. | |
| page_size | No | Maximum number of results to return (1-100). | |
| page_token | No | Token for the next page of results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |