Note panel actions
notes-panelUsed only by the Hjarni note panel UI to reload, preview and save the note it shows. Assistants should not call this: read with notes-get and edit with notes-update. Actions: 'get' (id; known_lock_version answers status 'unchanged' when the note has not moved), 'search' (query: the panel's note picker, with a short preview per note; with id, only the notes that note can link to), 'browse' (place: one level of the folder tree, its folders and notes), 'preview' (id, body: renders Markdown without saving), 'save' (id, lock_version, title and/or body and/or add_tags/remove_tags; a lock_version that is no longer current saves nothing and answers status 'conflict' with the saved version and a line diff; resolve 'merge_hunks' with hunks {index: 'saved'|'draft'} applies a per-hunk choice), 'create_note' (place, title, body, add_tags), 'create_folder' (place, name), 'update_folder' (place folder:; name, description, llm_instructions, negative_space), 'instructions' (place personal: brain, personal; place team:: team), 'folder_options' (id: where that note can move), 'move' (id, place), 'trash' (id), 'restore' (id), 'favorite' (id, favorited), 'archive' (id, archived), 'history' (id; with seq, that version and its changes), 'revert' (id, seq, lock_version), 'verify' (id), 'file_description' (id, file_id, description), 'save_to_personal' (id of a team note), 'purge' (id of a trashed note: delete for good), 'folder_archive' (place folder:, archived), 'folder_delete' (place), 'folder_restore' (id), 'folder_purge' (id), 'folder_parents' (place), 'folder_move' (place, to), 'folder_reorder' (place, direction up|down), 'tag' (place tag:, op rename|merge|delete, name), 'share' (id, or place folder:; op status|enable|disable|editing_on|editing_off), 'bulk' (ids, op move|archive|unarchive|trash, place for move), 'toggle' (id, lock_version, index, checked: ticks one task checkbox; a lock_version that is no longer current ticks nothing and answers status 'stale' with the saved version).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Note ID (required for get, preview and save) | |
| op | No | tag: rename|merge|delete; share: status|enable|disable|editing_on|editing_off; bulk: move|archive|unarchive|trash | |
| to | No | folder_move: the new parent: personal, team:<id> or folder:<id> | |
| ids | No | bulk: the notes | |
| seq | No | history, revert: the version | |
| body | No | save: new body (full replacement); preview: Markdown to render | |
| name | No | create_folder, update_folder: folder name; tag: the new name, or the tag to merge into | |
| sort | No | browse: note order | |
| team | No | instructions (place team:<id>): the team's instructions (owners only) | |
| brain | No | instructions (place personal): instructions for everything | |
| hunks | No | save with resolve: hunk index => 'saved' or 'draft' | |
| index | No | toggle: which task checkbox, counted from 0 in the note | |
| place | No | browse: spaces, personal, shared, team:<id> or folder:<id> (default spaces), also inbox, favorites, tags, tag:<id>, archived, trash; create_note, create_folder, move: where; update_folder: folder:<id>; instructions: personal or team:<id> | |
| query | No | search: text to find; empty lists recently edited notes | |
| space | No | search: only personal, shared or team:<id> | |
| title | No | save: new title | |
| action | Yes | What to do (required) | |
| checked | No | toggle: the box's new state | |
| file_id | No | file_description: the file | |
| resolve | No | save: apply per-hunk choices from a conflict | |
| summary | No | save: new summary | |
| add_tags | No | save: tags to add (applied to the saved tags, never a conflict) | |
| archived | No | archive: archive (true) or unarchive (false) | |
| personal | No | instructions (place personal): instructions for Personal | |
| direction | No | folder_reorder | |
| favorited | No | favorite: the star's new state | |
| source_url | No | save: new source URL | |
| description | No | update_folder: what the folder is for; file_description: the file's description | |
| remove_tags | No | save: tags to remove | |
| lock_version | No | save: the lock_version the edit started from (required for save) | |
| negative_space | No | update_folder: what does not belong in the folder | |
| llm_instructions | No | update_folder: the folder's AI instructions | |
| known_lock_version | No | get: the lock_version the panel already shows |