get_totp_code
Get the current 6-digit TOTP code for a vault login item, along with the remaining seconds in the period and the algorithm, so you know whether to use it immediately or wait for a fresh code.
Instructions
Get the current TOTP code for a vault login item with TOTP configured. Returns the 6-digit code, the remaining seconds in the current period, and the algorithm. Use the remaining_seconds field to decide whether to use the code immediately or wait for a fresh period.
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": {
"name": "<name>"
},
"name": "get_totp_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact item name (case-sensitive) of a vault login item with TOTP configured. |