drive_search
Search Google Drive files using query syntax like name contains 'report' and get full metadata (id, name, size, checksums, links) for each match, including shared drives. Set limit to control results or auto-paginate up to 10,000 files.
Instructions
Search Drive files with a Drive query (same syntax as drive search's query argument, e.g. name contains 'report' and mimeType = 'application/pdf'). Returns id/name/mimeType/size/md5Checksum/sha1Checksum/sha256Checksum/modifiedTime/parents/webViewLink/owners per hit — files.list returns full metadata in one call, so there's no separate hydration step. Checksum fields are present only for binary-content files (absent for folders and Google-native docs). Always searches shared drives too. limit defaults to 50 when omitted; pass 0 explicitly to auto-paginate up to a hard cap (10000). Read-only. Mirrors omni-dev drive search. Output is YAML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results. Defaults to 50 when omitted; `0` explicitly means fetch every match up to the hard cap (10000). | |
| query | Yes | Drive query, same syntax as `drive search`'s query argument (e.g. `name contains 'report' and mimeType = 'application/pdf'`). Required. | |
| account | No | Selects a named Drive account instead of the ambient `--account`/`OMNI_DEV_DRIVE_ACCOUNT` resolution — e.g. `work`. Omit to use the resolved default account (or the legacy single-account credentials, if no named accounts are configured). Call `drive_account_list` to discover configured names. |