generate_random_bytes
Generate cryptographically secure random bytes in hex format. Specify the number of bytes needed for keys or nonces.
Instructions
Generate random bytes.
Args: length: Number of bytes to generate (default 32).
Returns: Hex-encoded random bytes.
Example: >>> generate_random_bytes(16) 'a1b2c3d4e5f6...'
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_random_bytes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |