List duplicate groups
list_duplicate_groupsList groups of identical files from the duplicate index within a path, paged by offset. Use it after scan_duplicates to review duplicates before planning a trash run.
Instructions
List groups of identical files from the duplicate index, every copy inside path. Use when: reviewing duplicates after scan_duplicates. Instead: trash_duplicates (needs --mcp-write) with dry_run for the trash plan. Requires: --mcp-tools duplicates. Behavior: read-only; the index as of the last scan, no file is read. Groups are ordered by algorithm, then hash value, so offset pages are stable; empty files never group. keep=true marks the oldest copy (no mtime: the shorter, then alphabetically first path), the one trash_duplicates keeps. Pages with offset and max_groups. Time limit: 15 s. Returns: {path, truncated, groups: [{algorithm, value, size, copies: [{path, size, mtime (Unix seconds), modified (ISO 8601), scan_id, keep}]}]}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_duplicate_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The folder (absolute, or relative to the MCP root). Default on the local backend: the MCP root; other backends need it. | |
| offset | No | Groups to skip, for the next page: the previous offset + max_groups. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| scan_id | No | Only groups with at least one copy from this scan (a scan_id from list_duplicate_scans); 0 = rows from before scans were recorded. Omit for all scans. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. | |
| algorithm | No | Only groups hashed with this algorithm; omit for every algorithm. | |
| max_groups | No | Return at most this many groups; more sets truncated=true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| groups | Yes | ||
| truncated | Yes |