search_spreadsheets
Find Google Drive spreadsheets by name or content across My Drive and accessible shared drives; use it for spreadsheet-only results instead of general file search.
Instructions
Search for spreadsheets in Google Drive by name or content, across 'My Drive' AND every shared drive the authenticated account can access (corpora='allDrives').
A strict, less-flexible special case of search_files pre-filtered to the spreadsheet MIME type. For folder-scoped search or other file types, use search_files(query, mime_type='application/vnd.google-apps.spreadsheet', ...) instead.
Args: query: Search query string. Searches in file name and content. Examples: "budget 2024", "sales report", "project tracker" max_results: Maximum number of results to return (default 20, max 100)
Returns: List of matching spreadsheets with their ID, name, metadata, and starred status. Trashed files are excluded; to find one to restore, use get_file_metadata or restore_file with its file ID.
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_spreadsheets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |