hash_encode
Hash and encode text. Use when a task needs an exact SHA or MD5 digest, or text converted to or from base64, base64url, hex or URL percent-encoding, where a language model would otherwise guess the output. Cost: 1 credit per call.
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": {
"operation": "<operation>",
"text": "<text>"
},
"name": "hash_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The input, up to 1 MiB. | |
| digest | No | For hash: hex (the default), base64 or base64url. | |
| format | No | For encode and decode: base64, base64url, hex or url. | |
| algorithm | No | For hash: sha256 (the default), sha384, sha512, sha1 or md5. | |
| operation | Yes | hash, encode or decode. | |
| input_encoding | No | For hash: how to read text. utf8 (the default), base64 or hex. |