totp_code
Generate time-based one-time passwords (TOTP) for 2FA accounts from a shared secret. Runs locally via RFC 6238, so the secret never leaves your machine.
Instructions
Compute the authenticator code for an account whose second factor was set up with a shared secret. Runs locally by RFC 6238: the secret never leaves this machine.
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": "totp_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| digits | No | ||
| period | No | ||
| secret | Yes | Base32 secret shown when 2FA was enabled | |
| algorithm | No | sha1 |