generate_random_string
Generates a random string of specified length from a given character set using a cryptographically secure random source. Returns the generated string. (cost: 1 credit)
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_string"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | integer, required, length of the string to generate (must be positive) | |
| characters | No | string, optional, character set to use for generation, default 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' |