drive_search
Search Google Drive files, including shared items and shared drives, by passing a raw Drive v3 q query to filter by name, type, or other metadata.
Instructions
Search Google Drive files using a raw Drive q query string.
Uses user credentials (gcloud auth print-access-token). Searches My
Drive, files shared with you, and every shared drive you belong to.
Args:
query: A raw Drive v3 q expression, e.g.
"name contains 'design' and mimeType='application/vnd.google-apps.document'".
See https://developers.google.com/drive/api/guides/search-files
page_size: Maximum number of files to return (1-100).
page_token: The nextPageToken from a previous call, to fetch the next page.
Returns:
A JSON object {files: [{id, name, mimeType, modifiedTime}], nextPageToken, incompleteSearch}. nextPageToken is null on the last page.
incompleteSearch is true when Drive skipped some shared drives; narrow
the query and search again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| page_size | No | ||
| page_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |