bear_get_todo
Retrieve todo notes from Bear App using a search term or API token. Configure to show the Bear window for immediate access to your tasks.
Instructions
Get todo notes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Search term | |
| show_window | No | Show Bear window | |
| token | No | Bear API token |
Input Schema (JSON Schema)
{
"properties": {
"search": {
"description": "Search term",
"type": "string"
},
"show_window": {
"description": "Show Bear window",
"type": "boolean"
},
"token": {
"description": "Bear API token",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/index.ts:973-992 (handler)Handler function that implements the core logic for 'bear_get_todo'. Builds parameters and invokes Bear's 'todo' action via x-callback-url, returning the retrieved 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 (registration)Registration of the 'bear_get_todo' tool in the ListTools handler, including name, description, and input schema.{ 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:575-589 (schema)Input schema defining the parameters for the 'bear_get_todo' tool.type: "object", properties: { search: { type: "string", description: "Search term" }, token: { type: "string", description: "Bear API token" }, show_window: { type: "boolean", description: "Show Bear window" } }