search_content
Search file contents in Google Drive folders for a keyword or phrase, returning matching files with context snippets.
Instructions
Search for a keyword or phrase within the content of files in the target Google Drive folders.
Unlike list_files (which filters by filename), this tool searches inside file contents and returns matching files with a surrounding context snippet.
Typical workflow: use this to find which files mention a topic, then call read_file on specific files for the full content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The keyword or phrase to search for (case-insensitive). | |
| file_type | No | Narrow the scope before searching — 'document', 'spreadsheet', 'pdf', or 'text'. Omit to search all supported types. | |
| recursive | No | If True, searches nested subfolders. Defaults to False. | |
| max_results | No | Maximum number of matching files to return. Defaults to 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |