sha256_manifest
Record the canonical SHA-256 hash of an original binary before patching to enable verified rollback with restore_original.
Instructions
Compute the SHA-256 manifest of path.
Args: path: file to hash
Returns::
{
"path": "...",
"size": N,
"sha256": "<64 hex chars>",
}Use this to record the canonical SHA-256 of the original
binary before any patch is applied. The hash is the
rollback key: restore_original(original, target, expected_sha256=...) will refuse to proceed if the
original's hash has drifted.
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": "sha256_manifest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |