bear_get_today
Retrieve today's notes from Bear App using search filters and API authentication to access daily content.
Instructions
Get today's notes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Search term | |
| token | No | Bear API token | |
| show_window | No | Show Bear window |
Implementation Reference
- src/index.ts:995-1016 (handler)The main handler function for the 'bear_get_today' tool. It constructs parameters from input arguments (search, token, show_window), calls the shared executeWithCallback method with action 'today', and returns a formatted content block with the retrieved notes.private async getToday(args: any) { const params: Record<string, string | boolean> = {}; if (args.search) params.search = args.search; if (args.token) params.token = args.token; if (args.show_window) params.show_window = "yes"; const todayData = await this.executeWithCallback("today", params); return { content: [ { type: "text", text: JSON.stringify({ message: `Retrieved today's notes${args.search ? ` matching: ${args.search}` : ""}`, notes: todayData }, null, 2) } ] }; }
- src/index.ts:595-611 (schema)Input schema defining the parameters for the bear_get_today tool: optional search (string), token (string), and show_window (boolean).inputSchema: { type: "object", properties: { search: { type: "string", description: "Search term" }, token: { type: "string", description: "Bear API token" }, show_window: { type: "boolean", description: "Show Bear window" } } }
- src/index.ts:592-612 (registration)Registration of the bear_get_today tool in the MCP server's tools list, including name, description, and input schema.{ name: "bear_get_today", description: "Get today's notes", inputSchema: { type: "object", properties: { search: { type: "string", description: "Search term" }, token: { type: "string", description: "Bear API token" }, show_window: { type: "boolean", description: "Show Bear window" } } } },
- src/index.ts:727-728 (registration)Switch case that registers and dispatches execution of the bear_get_today tool to its handler method.case "bear_get_today": return await this.getToday(args);