bear_delete_tag
Remove tags from Bear notes to organize content. This tool deletes specified tags to maintain a clean tagging system.
Instructions
Delete an existing tag
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tag name to delete | |
| show_window | No | Show Bear window |
Implementation Reference
- src/index.ts:1107-1123 (handler)The main handler function for the 'bear_delete_tag' tool. It constructs a Bear x-callback URL for the 'delete-tag' action with the provided tag name and optional show_window parameter, executes the URL, and returns a success message.private async deleteTag(args: any) { const params: Record<string, string | boolean> = { name: args.name }; if (args.show_window) params.show_window = "yes"; const url = this.buildBearURL("delete-tag", params); await this.executeURL(url); return { content: [ { type: "text", text: `Deleted tag: ${args.name}` } ] }; }
- src/index.ts:681-694 (schema)The input schema definition for the 'bear_delete_tag' tool, specifying required 'name' parameter and optional 'show_window'.inputSchema: { type: "object", properties: { name: { type: "string", description: "Tag name to delete" }, show_window: { type: "boolean", description: "Show Bear window" } }, required: ["name"] }
- src/index.ts:678-695 (registration)Registration of the 'bear_delete_tag' tool in the ListTools response, including name, description, and input schema.{ name: "bear_delete_tag", description: "Delete an existing tag", inputSchema: { type: "object", properties: { name: { type: "string", description: "Tag name to delete" }, show_window: { type: "boolean", description: "Show Bear window" } }, required: ["name"] } }
- src/index.ts:735-736 (registration)Dispatch/registration of the 'bear_delete_tag' handler in the CallToolRequest switch statement.case "bear_delete_tag": return await this.deleteTag(args);