search_file_content
Find files by searching their text content. Specify the text to search and optionally filter by file type or drive location.
Instructions
Search for files by their text content. Finds files containing the specified text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to search for within file contents. | |
| corpora | No | Source of files: 'user' (default), 'drive', or 'allDrives'. | |
| drive_id | No | ID of the shared drive when corpora='drive'. | |
| file_type | No | Optional MIME type filter (e.g., 'text/plain', 'application/pdf'). | |
| 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 |