keychain_list_folders
List personal Bitwarden folders to organize and access password vault items. Use search and limit parameters to filter results.
Instructions
List Bitwarden folders (personal).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | ||
| limit | No |
Implementation Reference
- src/tools/registerTools.ts:244-270 (handler)Implementation of the "list_folders" tool (the tool name in the code uses the prefix from toolPrefix, resulting in "keychain_list_folders" assuming toolPrefix="keychain").
registerTool( `${deps.toolPrefix}.list_folders`, { title: 'List Folders', description: 'List Bitwarden folders (personal).', annotations: { readOnlyHint: true }, inputSchema: { search: z.string().optional(), limit: z.number().int().min(1).max(500).optional(), }, _meta: toolMeta, }, async (input, extra) => { const sdk = await deps.getSdk(extra.authInfo); const folders = await sdk.listFolders(input); const results = folders .filter((x) => x && typeof x === 'object') .map((x) => { const rec = x as Record<string, unknown>; return { id: rec.id, name: rec.name }; }); return { structuredContent: { results }, content: [{ type: 'text', text: `Found ${results.length} folder(s).` }], }; }, );