bear_get_untagged
Retrieve untagged notes in Bear App using search terms and API token. Optionally display the Bear window for direct access during the process.
Instructions
Get untagged 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:951-971 (handler)Handler function that builds parameters for the Bear 'untagged' x-callback-url action, executes it via executeWithCallback, and returns formatted JSON response with untagged notes.private async getUntagged(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 untaggedData = await this.executeWithCallback("untagged", params); return { content: [ { type: "text", text: JSON.stringify({ message: `Retrieved untagged notes${args.search ? ` matching: ${args.search}` : ""}`, notes: untaggedData }, null, 2) } ] }; }
- src/index.ts:550-570 (schema)Input schema definition for the bear_get_untagged tool, specifying optional parameters: search, token, show_window.{ name: "bear_get_untagged", description: "Get untagged 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:723-724 (registration)Switch case in CallToolRequestSchema handler that dispatches to the getUntagged method.case "bear_get_untagged": return await this.getUntagged(args);