bear_get_locked
Retrieve encrypted notes from Bear App using search terms and window display options to access secured content.
Instructions
Get locked (encrypted) notes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Search term | |
| show_window | No | Show Bear window |
Implementation Reference
- src/index.ts:613-629 (registration)Registers the 'bear_get_locked' tool in the ListTools handler, providing name, description, and input schema for parameters like search term and show_window option.{ name: "bear_get_locked", description: "Get locked (encrypted) notes", inputSchema: { type: "object", properties: { search: { type: "string", description: "Search term" }, show_window: { type: "boolean", description: "Show Bear window" } } } },
- src/index.ts:729-730 (registration)Switch case in CallToolRequestSchema handler that dispatches 'bear_get_locked' tool calls to the getLocked method.case "bear_get_locked": return await this.getLocked(args);
- src/index.ts:1017-1034 (handler)Core handler function for 'bear_get_locked' tool. Builds a Bear x-callback-url for the 'locked' action with optional search and show_window parameters, executes it, and returns a success message.private async getLocked(args: any) { const params: Record<string, string | boolean> = {}; if (args.search) params.search = args.search; if (args.show_window) params.show_window = "yes"; const url = this.buildBearURL("locked", params); await this.executeURL(url); return { content: [ { type: "text", text: `Retrieved locked notes${args.search ? ` matching: ${args.search}` : ""}` } ] }; }
- src/index.ts:616-627 (schema)Input schema defining parameters for the bear_get_locked tool: optional search string and show_window boolean.inputSchema: { type: "object", properties: { search: { type: "string", description: "Search term" }, show_window: { type: "boolean", description: "Show Bear window" } }