generate_otp
Generate time-based one-time passwords (TOTP) from a base32 secret key, with configurable digit length and time period.
Instructions
Generate Time-based One-Time Password (TOTP) codes
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": {
"secret": "<secret>"
},
"name": "generate_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | Base32 encoded secret key | |
| digits | No | Number of digits in the code | |
| period | No | Time period in seconds |