Checksum folder tree
compute_tree_checksumsHash every file in a folder or a single file and list each digest to verify or compare an entire directory tree.
Instructions
Hash every file under a folder (or one file) and list each digest. Use when: verifying or comparing a whole tree. Instead: compute_file_checksum for one file; scan_duplicates to group identical files. Behavior: read-only, breadth-first. Symlinked files are hashed, symlinked folders get an error entry. Secret files are refused with an error entry. Files above max_file_bytes are skipped; max_files or a folder at max_depth sets truncated (no cursor: rerun on a subfolder). Time limit: 5 min. Returns: {entries, truncated, complete}; each entry is {path, size, algorithm} plus one of: checksum and source (hashed), skipped 'too-large', or error (with folder true when a folder could not be listed).
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": "compute_tree_checksums"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The folder (or one file) to hash (absolute, or relative to the MCP root). Required unless path_b64 is given. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. | |
| algorithm | No | The hash algorithm. | sha256 |
| max_depth | No | Levels to visit, counted from 1: 1 = path's own entries. | |
| max_files | No | Most files to hash; truncated=true when there were more. | |
| max_file_bytes | No | Files larger than this many bytes are skipped (default 1 GiB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | ||
| complete | Yes | ||
| truncated | Yes |