vault_2fa_code
Retrieve the current 6- or 8-digit authenticator code and its remaining validity from a vaulted 2FA secret, so you can complete a sign-in that prompts for one. The seed stays in the broker.
Instructions
Get the current authenticator-app code (the 6-digit 2FA code) for a vaulted login or Authenticator code secret, to type into a sign-in that asks for one. You get the 6- or 8-digit code and how many seconds it stays valid; the seed that makes the codes never leaves the broker. If the code was about to expire, this waits up to 5 seconds and returns the next one.
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": {
"entry_id": "<entry_id>",
"purpose": "<purpose>"
},
"name": "vault_2fa_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | Yes | What you are signing in to, and why. The owner sees it. | |
| entry_id | Yes | Vault entry holding the authenticator setup key (an Authenticator code secret, or a login with its Authenticator setup key filled). Only authenticator-app codes: not text-message or email codes, not passkeys. |