compute_file_hash
Compute a cryptographic hash of a local file to get the fingerprint needed for blockchain timestamp proofs or to confirm a file has not changed. The file is hashed locally and never uploaded.
Instructions
Compute the cryptographic hash of a local file.
The file is read and hashed locally; its contents are never uploaded or transmitted. SHA-256 (the default) is the algorithm used by Bitcoin, Polygon, and blockchain timestamp services such as ProofLedger. Use this to obtain the fingerprint that a timestamp proof anchors, or to confirm a file has not changed.
Args: file_path: Path to the file on the local machine. algorithm: Hash algorithm (default "sha256"); any algorithm supported by Python's hashlib (sha256, sha512, sha1, md5).
Returns: The hex-encoded hash digest.
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": {
"file_path": "<file_path>"
},
"name": "compute_file_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algorithm | No | sha256 | |
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |