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": "..."},
...
],
}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "fingerprint_sections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| chunk_size | No | ||
| max_chunks | No |