generate_password
Generate a cryptographically secure random password using crypto.randomBytes. Configurable length (4–128), uppercase letters, digits, and symbols. Use when resetting user passwords, seeding test accounts, or generating API secrets.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"length": 24,
"numbers": true,
"symbols": true,
"uppercase": true
},
"name": "generate_password"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Password length (4–128, default: 16) | |
| numbers | No | Include digits (default: true) | |
| symbols | No | Include symbols like !@#$ (default: false) | |
| uppercase | No | Include uppercase letters (default: true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | ||
| password | No | ||
| charset_size | No |