gws.drive.search
Locate files in Google Drive using query syntax, then retrieve each match's ID, name, MIME type, modified time, size, owners, and web link for further processing.
Instructions
Search for files across the account's Google Drive using Drive query syntax. Returns each match's file ID, name, MIME type, modified time, size, owners, and web link. Use the returned file ID with drive.read_file or drive.list_folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Drive search query (e.g., "name contains 'report'", "mimeType = 'application/pdf'", "'<folderId>' in parents") | |
| account | No | Account label or email. Uses default if omitted. | |
| maxResults | No | Maximum files to return (default: 20) |