unarchive_note
Restore archived notes in Bear Notes on macOS by providing the note identifier, making previously hidden content accessible again.
Instructions
Unarchive 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:201-216 (handler)The 'unarchive_note' function implements the logic to unarchive a note by calling the Bear x-callback-url 'unarchive'.
def unarchive_note(note_id: str) -> dict[str, str]: """ Unarchive 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/unarchive?{query_string}" return _open_bear_url(url)