bear_get_locked
Encrypt and retrieve locked notes in the Bear App using a search term and optional window display, facilitated by the Bear App MCP Server for secure note management.
Instructions
Get locked (encrypted) notes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Search term | |
| show_window | No | Show Bear window |
Input Schema (JSON Schema)
{
"properties": {
"search": {
"description": "Search term",
"type": "string"
},
"show_window": {
"description": "Show Bear window",
"type": "boolean"
}
},
"type": "object"
}
Implementation Reference
- src/index.ts:1017-1034 (handler)The handler function that executes the 'bear_get_locked' tool by building a Bear 'locked' URL with optional search and show_window parameters, executing it, and returning 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-628 (schema)Input schema definition for the 'bear_get_locked' tool, specifying optional 'search' string and 'show_window' boolean parameters.inputSchema: { type: "object", properties: { search: { type: "string", description: "Search term" }, show_window: { type: "boolean", description: "Show Bear window" } } }
- src/index.ts:613-629 (registration)Registration of the 'bear_get_locked' tool in the ListTools response, including name, description, and input schema.{ 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)Registration of the call handler dispatch for 'bear_get_locked' tool in the switch statement, routing to the getLocked method.case "bear_get_locked": return await this.getLocked(args);