hash
Generate cryptographic digests for UTF-8 strings to fingerprint content, check integrity, or deduplicate data. Outputs hex and base64 digests with byte length.
Instructions
Compute a cryptographic hash of a UTF-8 string. Returns hex and base64 digests plus the UTF-8 byte length. Supports sha256 (default), sha512, sha1, md5, and HMAC variants via hmacKey. Use for content fingerprints, deduplication and integrity checks.
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": {
"text": "<text>"
},
"name": "hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo | No | Hash algorithm (default sha256) | |
| text | Yes | Text to hash | |
| hmacKey | No | If set, compute HMAC with this key |