Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • 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);
      });
    }
  • 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' }],
        };
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icoretech/warden-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server