bear_delete_tag
Remove a specific tag from Bear App. Input the tag name to delete it, optionally choose to show the Bear window for confirmation.
Instructions
Delete an existing tag
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tag name to delete | |
| show_window | No | Show Bear window |
Input Schema (JSON Schema)
{
"properties": {
"name": {
"description": "Tag name to delete",
"type": "string"
},
"show_window": {
"description": "Show Bear window",
"type": "boolean"
}
},
"required": [
"name"
],
"type": "object"
}
Implementation Reference
- src/index.ts:1107-1123 (handler)The handler function that implements the core logic for the 'bear_delete_tag' tool. It constructs the Bear x-callback-url for the 'delete-tag' action using the provided tag name and optional show_window parameter, executes it, and returns a confirmation 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)Defines the input schema for the 'bear_delete_tag' tool, specifying properties 'name' (required string) and 'show_window' (optional boolean).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)Registers the 'bear_delete_tag' tool in the ListTools response, including its 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)In the CallToolRequestSchema handler, dispatches execution of 'bear_delete_tag' to the deleteTag method.case "bear_delete_tag": return await this.deleteTag(args);