drive_dedupe
Find duplicate files in Google Drive by content hash using a Drive query. Groups results by md5 checksum, skips files without checksums, and supports a configurable limit.
Instructions
Find Drive files sharing the same content hash, within the results of a Drive query (same syntax as drive_search's query, e.g. '<folder-id>' in parents to dedupe within one folder). Reuses the same bulk-search path as drive_search — no per-file follow-up call. Groups by md5Checksum (the broadest-coverage checksum field); files with no checksum (folders, Google-native documents) are skipped, and groups of one are omitted. limit defaults to 50 when omitted; pass 0 explicitly to scan up to a hard cap (10000). Read-only. Mirrors omni-dev drive dedupe. Output is YAML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results to scan. Defaults to 50 when omitted; `0` explicitly means scan every match up to the hard cap (10000). | |
| query | Yes | Drive query, same syntax as `drive search`'s query argument (e.g. `'<folder-id>' in parents` to dedupe within one folder). 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. |