fingerprint_sections
Compute SHA-256 fingerprints for each chunk of a binary file to detect structural changes between versions without loading the entire file into memory.
Instructions
Return a per-chunk SHA-256 + offset + size fingerprint of path.
Useful for finding the structural delta between two
versions of a binary without loading either into
memory. Pair with unified_diff (chunk mode) for
large files.
Args: path: file to fingerprint chunk_size: bytes per chunk (default 1 MiB) max_chunks: 0 = no cap; > 0 = return at most N chunks
Returns::
{
"path": "...",
"size": N,
"chunk_size": N,
"truncated": bool,
"chunks": [
{"index": 0, "offset": 0, "size": 1048576, "sha256": "..."},
...
],
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| chunk_size | No | ||
| max_chunks | No |