zotero_find_duplicates
Find duplicate items in your Zotero library by matching on title, DOI, or both. Returns candidate groups for review before merging.
Instructions
Scan the active library (or a single collection) for duplicate items and return candidate groups for review. This tool only IDENTIFIES duplicates — it doesn't merge them. Call zotero_merge_duplicates to actually merge a group. method: 'both' (default) — match on title OR DOI; 'title' — normalized-title match only (lowercase, punctuation-stripped); 'doi' — exact DOI match only (safest for automation). Prefer 'doi' when the user intends to run merge_duplicates unattended. collection_key: optional 8-character key to restrict scanning to one collection; otherwise scans the whole active library. LIBRARY SIZE CAP: refuses to scan a library with > 5,000 items (the whole-library scan is O(n²) on titles) — on larger libraries you MUST pass collection_key to narrow the scope. limit: max groups to return (default 50). Returns a markdown block per group with keys, titles, DOIs, and dateAdded — use this to decide which item to KEEP before calling zotero_merge_duplicates(keeper_key=..., duplicate_keys=[...]). Read-only; works in local or web mode. Example: zotero_find_duplicates(method='doi', limit=20).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | both | |
| collection_key | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |