file-checksum
Compute SHA-256 checksums for files or whole folders on the host that stores them, enabling local or remote verification and catalog backfills.
Instructions
dbabrain common.cli file-checksum: Files hashed on the host that holds them.
Request fields (pass them as request):
paths: The files to hash, full paths as that host sees them - or give folder instead.
algorithm: sha256 - the only one; stated so another is a choice, not a surprise.
host: Where the files are: hostcmd's block {runtime, host, port, access, username, password|key_file, container, pod}. Omit it to hash on this machine.
timeout_seconds: Seconds one batch may take; default 3600 - a large FULL hashes at disk speed.
folder: Instead of paths: every file under this folder, listed on the host (find, or Get-ChildItem -Recurse) and hashed there - a catalog backfill (0.34.0).
include: With folder: file name patterns, case-insensitive ("*.bak"); default every file.
container: With folder: the folder is a path inside this container, translated to the host's through its mounts (docker inspect).
max_files: With folder: at most this many files (default 5000); more is answered as truncated, never cut silently.
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": "file-checksum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |