keccak256_hash
Generate Ethereum function selectors and event topics by computing the Keccak-256 hash of a string or hex value.
Instructions
Compute the Keccak-256 hash of a value. Used for hashing in Ethereum (function selectors, event topics, etc.)
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": {
"value": "<value>"
},
"name": "keccak256_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of input: 'string' for text, 'hex' for hex bytes | string |
| value | Yes | The value to hash (string or hex) |