bear_trash_note
Move notes to trash using a unique identifier or search term in Bear App. Optionally display the Bear window for visibility.
Instructions
Move a note to trash
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Note unique identifier | |
| search | No | Search term to find notes to trash | |
| show_window | No | Show Bear window |
Input Schema (JSON Schema)
{
"properties": {
"id": {
"description": "Note unique identifier",
"type": "string"
},
"search": {
"description": "Search term to find notes to trash",
"type": "string"
},
"show_window": {
"description": "Show Bear window",
"type": "boolean"
}
},
"type": "object"
}
Implementation Reference
- src/index.ts:911-929 (handler)Handler function for bear_trash_note tool. Builds a Bear URL with the 'trash' action using provided id or search params, executes the URL, and returns a success message.private async trashNote(args: any) { const params: Record<string, string | boolean> = {}; if (args.id) params.id = args.id; if (args.search) params.search = args.search; if (args.show_window) params.show_window = "yes"; const url = this.buildBearURL("trash", params); await this.executeURL(url); return { content: [ { type: "text", text: `Moved note(s) to trash${args.id ? ` with ID: ${args.id}` : args.search ? ` matching: ${args.search}` : ""}` } ] }; }
- src/index.ts:508-528 (registration)Tool registration in the tools list, including name, description, and input schema for bear_trash_note.{ name: "bear_trash_note", description: "Move a note to trash", inputSchema: { type: "object", properties: { id: { type: "string", description: "Note unique identifier" }, search: { type: "string", description: "Search term to find notes to trash" }, show_window: { type: "boolean", description: "Show Bear window" } } } },
- src/index.ts:719-720 (registration)Dispatch case in the central request handler that routes bear_trash_note calls to the trashNote method.case "bear_trash_note": return await this.trashNote(args);
- src/index.ts:511-527 (schema)Input schema definition for the bear_trash_note tool.inputSchema: { type: "object", properties: { id: { type: "string", description: "Note unique identifier" }, search: { type: "string", description: "Search term to find notes to trash" }, show_window: { type: "boolean", description: "Show Bear window" } } }