keychain_get_uri
Retrieve login URIs from a Bitwarden vault by searching with a specific term, enabling secure access to stored credentials.
Instructions
Get a login URI by search term (bw get uri).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes |
Implementation Reference
- src/tools/registerTools.ts:587-605 (handler)The `keychain_get_uri` (registered as `get_uri` in the tool prefix) handler function that executes the `getUri` method via the `KeychainSdk`.
`${deps.toolPrefix}.get_uri`, { title: 'Get URI', description: 'Get a login URI by search term (bw get uri).', annotations: { readOnlyHint: true }, inputSchema: { term: z.string(), }, _meta: toolMeta, }, async (input, extra) => { const sdk = await deps.getSdk(extra.authInfo); const uri = await sdk.getUri(input); return { structuredContent: toolResult('uri', uri.value, uri.revealed), content: [{ type: 'text', text: 'OK' }], }; }, );