Get one-time code
get_otpGet the current one-time password from an Enpass item, including seconds until it rotates, to complete two-factor authentication.
Instructions
Generates the current TOTP / two-factor one-time code for an entry that stores an OTP secret. Returns the code and how many seconds until it rotates, so it can be entered for 2FA.
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": {
"vault": "<vault>",
"uuid": "<uuid>"
},
"name": "get_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Entry uuid (from list_items) | |
| vault | Yes | Registered vault name |