bear_get_todo
Retrieve todo notes from Bear App using search terms, API tokens, and window display options to organize tasks.
Instructions
Get todo 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:973-992 (handler)The main handler function for 'bear_get_todo' tool. It constructs parameters from input args, calls Bear's 'todo' x-callback via executeWithCallback, and returns a formatted response with todo notes.private async getTodo(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 todoData = await this.executeWithCallback("todo", params); return { content: [ { type: "text", text: JSON.stringify({ message: `Retrieved todo notes${args.search ? ` matching: ${args.search}` : ""}`, notes: todoData }, null, 2) } ] };
- src/index.ts:571-591 (schema)Input schema definition for the 'bear_get_todo' tool, registered in the ListTools response.{ name: "bear_get_todo", description: "Get todo 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:725-726 (registration)Switch case in CallToolRequestSchema handler that dispatches to the getTodo method for 'bear_get_todo'.case "bear_get_todo": return await this.getTodo(args);