pdf_dedupe
Detect exact and near-duplicate PDFs by comparing content fingerprints. Identify redundant files to streamline document management.
Instructions
Detect exact and near-duplicate PDFs by content fingerprint.
Return Format
A dict with keys:
success: bool
files: list of input file names
exact_duplicates: [{sha, count, files}]
near_duplicates: [{a, b, similarity}]
Examples
await pdf_dedupe(paths=["a.pdf", "b.pdf"]) {"success": true, "files": ["a.pdf", "b.pdf"], "exact_duplicates": [], "near_duplicates": [{"a": "a.pdf", "b": "b.pdf", "similarity": 0.92}]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | List of PDF paths to check for duplicates. | |
| threshold | No | Similarity threshold 0-1. Default 0.85. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Human-readable summary | |
| success | No | Whether the operation succeeded |