OTP code generator
totpGenerate RFC 6238 one-time passwords from a base32 secret, verify submitted codes, or create a new secret and otpauth:// URI for authenticator setup.
Instructions
Generate TOTP codes (RFC 6238) from a base32 secret, optionally verify a code, or create a new secret with its otpauth:// URI. (Same as IT-Tools /otp-generator.)
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": "totp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Code to verify (accepts the previous/next window too) | |
| digits | No | ||
| issuer | No | IT-Tools | |
| period | No | ||
| secret | No | Base32 secret; omit to generate a new one | |
| account | No | user | |
| algorithm | No | sha1 |