get_otp
Generates a TOTP code for a specified account using its ID or name, returning the code and seconds remaining until it changes.
Instructions
Generates a TOTP code for a specific account. REQUIRED: Provide either account_id OR account_name (at least one must be specified). Returns name, code, length and remainingSeconds, the seconds until the code changes: if you need a fresh code, wait that long instead of calling again. Errors: Returns 'No account found' if the name doesn't match any account. Returns 'Multiple accounts match' with a list of matches in the 'multipleMatches' field if the name is ambiguous - use the returned account_id to retry.
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": "get_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | UUID of the account. Use this for exact matching, especially after resolving ambiguous name matches. | |
| account_name | No | Name or issuer domain to search for (case-insensitive partial match). If multiple accounts match, returns a list to choose from. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| name | No | ||
| error | No | ||
| length | Yes | ||
| multipleMatches | No | ||
| remainingSeconds | No |