archive_note
Archive notes in Bear Notes on macOS by moving them to the archive folder, helping users organize and declutter their workspace.
Instructions
Archive a note
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | The unique identifier of the note (ZUNIQUEIDENTIFIER) |
Implementation Reference
- src/mcp_bear/bear_url.py:183-198 (handler)The core handler function that constructs the x-callback-url for Bear to archive a note.
def archive_note(note_id: str) -> dict[str, str]: """ Archive a note. Args: note_id: The unique identifier of the note (ZUNIQUEIDENTIFIER) Returns: Dictionary with operation result """ params = {"id": note_id} query_string = urllib.parse.urlencode(params) url = f"bear://x-callback-url/archive?{query_string}" return _open_bear_url(url) - src/mcp_bear/server.py:237-250 (registration)Tool definition and registration within the MCP server.
Tool( name="archive_note", description="Archive a note", inputSchema={ "type": "object", "properties": { "note_id": { "type": "string", "description": "The unique identifier of the note (ZUNIQUEIDENTIFIER)", }, }, "required": ["note_id"], }, ),