keychain_list_collections
List collections in a Bitwarden vault, optionally filtered by organization, to manage and organize stored credentials.
Instructions
List collections (optionally filtered by organization).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | ||
| organizationId | No | ||
| limit | No |
Implementation Reference
- src/tools/registerTools.ts:1183-1210 (handler)I found that there is no tool exactly named 'keychain_list_collections'. However, there is 'keychain.list_collections' (depending on prefix) and several others like 'list_org_collections'. It appears the user may have misremembered the exact name. The code uses 'registerTool' to define these. Here is an example of one of the list tools.
registerTool( `${deps.toolPrefix}.get_totp`, { title: 'Get TOTP', description: 'Get a TOTP code/seed by search term (bw get totp). Returning a TOTP requires reveal=true.', annotations: { readOnlyHint: true }, inputSchema: { term: z.string(), reveal: z.boolean().optional(), }, _meta: toolMeta, }, async (input, extra) => { const sdk = await deps.getSdk(extra.authInfo); const totp = await sdk.getTotp( { term: input.term }, { reveal: effectiveReveal(input) }, ); return { structuredContent: toolResult('totp', totp.value, totp.revealed, { period: totp.period, timeLeft: totp.timeLeft, }), content: [{ type: 'text', text: 'OK' }], }; }, );