pad_hex
Pad a hex string to a specified byte size for ABI encoding, with configurable target size and left or right padding direction.
Instructions
Pad a hex value to a specific byte size (for ABI encoding)
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": {
"hex": "<hex>"
},
"name": "pad_hex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | The hex string to pad | |
| size | No | Target size in bytes (default: 32) | |
| direction | No | Padding direction | left |