bear_open_tag
Open notes with specific tags in Bear App to organize and access related content using the Bear App MCP Server integration.
Instructions
Open notes with specific tag(s)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tag name or comma-separated list of tags | |
| token | No | Bear API token | |
| show_window | No | Show Bear window |
Implementation Reference
- src/index.ts:890-909 (handler)The handler function for 'bear_open_tag' tool. Builds parameters for opening notes by tag using Bear's x-callback-url 'open-tag', executes via callback server, and returns JSON response with callback data.private async openTag(args: any) { const params: Record<string, string | boolean> = { name: args.name }; if (args.token) params.token = args.token; if (args.show_window) params.show_window = "yes"; const tagData = await this.executeWithCallback("open-tag", params); return { content: [ { type: "text", text: JSON.stringify({ message: `Opened notes with tag: ${args.name}`, notes: tagData }, null, 2) } ] }; }
- src/index.ts:486-507 (schema)Input schema definition for the bear_open_tag tool, specifying parameters like tag name (required), optional token, and show_window flag.{ name: "bear_open_tag", description: "Open notes with specific tag(s)", inputSchema: { type: "object", properties: { name: { type: "string", description: "Tag name or comma-separated list of tags" }, token: { type: "string", description: "Bear API token" }, show_window: { type: "boolean", description: "Show Bear window" } }, required: ["name"] } },
- src/index.ts:717-718 (registration)Registration in the CallToolRequestHandler switch statement, dispatching 'bear_open_tag' calls to the openTag handler method.case "bear_open_tag": return await this.openTag(args);