bear_context_remove
Remove a Bear note from the context library by deleting its #context tag, decluttering your curated knowledge base for LLM interactions.
Instructions
Remove a Bear note from the context library by removing its #context tag. Triggers a sync to delete the local file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Note ID (uniqueIdentifier) |
Implementation Reference
- mcp-server/src/tools.ts:930-952 (handler)The full handler definition for bear_context_remove. It defines the tool metadata (name, description, input schema requiring an 'id' field), and the buildArgs function which constructs the bcli command: ['context', 'remove', '<id>', '--json']. This removes a Bear note from the context library by removing its #context tag and triggers a sync to delete the local file.
bear_context_remove: { tool: { name: "bear_context_remove", description: "Remove a Bear note from the context library by removing its #context tag. Triggers a sync to delete the local file.", inputSchema: { type: "object" as const, properties: { id: { type: "string", description: "Note ID (uniqueIdentifier)", }, }, required: ["id"], }, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, }, }, buildArgs: (input) => ["context", "remove", String(input.id), "--json"], }, - mcp-server/src/index.ts:29-31 (registration)The tool is registered automatically by being included in the 'tools' object exported from tools.ts. index.ts iterates over Object.values(tools) to register all tools, including bear_context_remove.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: Object.values(tools).map((t) => t.tool), })); - mcp-server/src/tools.ts:930-952 (schema)The input schema for bear_context_remove requiring a single 'id' parameter (string). No other parameters are accepted.
bear_context_remove: { tool: { name: "bear_context_remove", description: "Remove a Bear note from the context library by removing its #context tag. Triggers a sync to delete the local file.", inputSchema: { type: "object" as const, properties: { id: { type: "string", description: "Note ID (uniqueIdentifier)", }, }, required: ["id"], }, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, }, }, buildArgs: (input) => ["context", "remove", String(input.id), "--json"], },