Hash text
hash_textCompute deterministic hash digests of UTF-8 strings using MD5, SHA-1, SHA-256, or SHA-512 locally. Use SHA-256 as default for secure checksums; MD5/SHA-1 only for legacy.
Instructions
Compute the hash digest of a UTF-8 string using MD5, SHA-1, SHA-256, or SHA-512. Deterministic and local. MD5 and SHA-1 are provided for legacy checksums only — both are broken for security purposes; use sha256 as the default.
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": {
"algorithm": "<algorithm>",
"text": "<text>"
},
"name": "hash_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | UTF-8 text to hash | |
| encoding | No | Digest output encoding | hex |
| algorithm | Yes | Hash algorithm |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| digest | Yes | ||
| algorithm | Yes | ||
| length_bits | Yes |