code
Retrieve a time-based one-time password (TOTP) for any vault item by providing its name or UUID, enabling secure two-factor authentication codes directly from your Bitwarden vault.
Instructions
Get a TOTP code for an item from your vault. The id can be a name or UUID. The response includes a top-level 'metadata' object with a 'secret: true' flag, which a gateway can intercept for sanitization or to provide secure handle-based access.
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": {
"id": "<id>"
},
"name": "code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID or name for the object to get the TOTP code from. |