Verify a file against a certificate
verify_fileVerify a local file's SHA-256 hash against a declared attestation, and validate the HMAC signature server-side without uploading the file contents.
Instructions
Compute the SHA-256 of a local file and check it against a declared hash/attestation, plus verify the HMAC signature server-side (no file bytes are ever sent). Pass the fields as read from the certificate (hash, attestazione, hmac, and any declared titolo/autore/anno/note).
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": "verify_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anno | No | ||
| hash | No | Declared SHA-256 to compare against (from the certificate). | |
| hmac | No | The HMAC signature from the certificate. | |
| note | No | ||
| path | Yes | Local file to verify. | |
| autore | No | ||
| titolo | No | ||
| attestazione | No | The attestation string from the certificate. |