keychain_get_folder
Retrieve a specific folder from a Bitwarden vault by its unique identifier to organize and access stored credentials.
Instructions
Get a folder by id (bw get folder).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/sdk/keychainSdk.ts:1403-1412 (handler)The actual implementation of keychain_get_folder logic.
async getFolder(input: { id: string }): Promise<unknown> { return this.bw.withSession(async (session) => { const { stdout } = await this.bw.runForSession( session, ['get', 'folder', input.id], { timeoutMs: 60_000 }, ); return this.parseBwJson(stdout); }); } - src/tools/registerTools.ts:658-676 (registration)Registration of the keychain_get_folder tool.
`${deps.toolPrefix}.get_folder`, { title: 'Get Folder', description: 'Get a folder by id (bw get folder).', annotations: { readOnlyHint: true }, inputSchema: { id: z.string(), }, _meta: toolMeta, }, async (input, extra) => { const sdk = await deps.getSdk(extra.authInfo); const folder = await sdk.getFolder(input); return { structuredContent: { folder }, content: [{ type: 'text', text: 'OK' }], }; }, );