Hjarni MCP
hjarni_mcpSearch, organize, link and maintain Hjarni notes, folders, tags, teams and attachments through Hjarni's hosted MCP server.
Acciones disponibles (40)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Containers createHJARNI_MCP_CONTAINERS_CREATEAcciónCreate a new container (folder) for organizing notes. Required: name (string). Optional: emoji (one emoji shown as the folder's icon in place of the folder glyph, e.g. 📦), description (string), negative_space (string — what does NOT belong in this folder, so notes can be routed away from it), parent_id (integer or null) for nesting inside another container — null or omitted creates it at the top level (so does the space's root id: the root is not a folder, and the response then reports parent_id null), team_id (integer) to create the container in a team instead of personal space. When team_id is set, parent_id (if provided) must belong to the same team. After creating, consider setting up LLM instructions with instructions-update.
HJARNI_MCP_CONTAINERS_CREATEAcciónCreate a new container (folder) for organizing notes. Required: name (string). Optional: emoji (one emoji shown as the folder's icon in place of the folder glyph, e.g. 📦), description (string), negative_space (string — what does NOT belong in this folder, so notes can be routed away from it), parent_id (integer or null) for nesting inside another container — null or omitted creates it at the top level (so does the space's root id: the root is not a folder, and the response then reports parent_id null), team_id (integer) to create the container in a team instead of personal space. When team_id is set, parent_id (if provided) must belong to the same team. After creating, consider setting up LLM instructions with instructions-update.
Parámetros de entrada
namestringObligatorioContainer name (required)
emojistring | nullOne emoji shown as the folder's icon, e.g. "📦". Omit it for the plain folder icon.
team_idinteger | nullCreate container in this team instead of personal space. Omit it (or send null) for personal space.
parent_idinteger | nullParent container ID for nesting, or null/omitted for a top-level container. Must belong to the same scope (personal or team) as the new container.
descriptionstringContainer description
negative_spacestring | nullWhat does NOT belong in this folder (e.g. 'No meeting notes, those go in Meetings'). Helps route notes away from the wrong place.
Parámetros de salida
Sin parámetros.
Containers deleteHJARNI_MCP_CONTAINERS_DELETEAcciónMove a folder to Trash within the connected user's personal Hjarni account or an authorized team workspace, taking its sub-folders and their notes with it as ONE recoverable unit. Restorable with containers-restore for 30 days, then permanently removed. This is a real delete (the folder leaves every listing); to retire a folder while keeping it browsable in the Archive, use containers-update with archived: true instead. Team folders require the editor role on every folder the delete touches. Required: id (integer).
HJARNI_MCP_CONTAINERS_DELETEAcciónMove a folder to Trash within the connected user's personal Hjarni account or an authorized team workspace, taking its sub-folders and their notes with it as ONE recoverable unit. Restorable with containers-restore for 30 days, then permanently removed. This is a real delete (the folder leaves every listing); to retire a folder while keeping it browsable in the Archive, use containers-update with archived: true instead. Team folders require the editor role on every folder the delete touches. Required: id (integer).
Parámetros de entrada
idintegerObligatorioContainer ID (required)
Parámetros de salida
Sin parámetros.
Containers getHJARNI_MCP_CONTAINERS_GETAcciónGet a single container by ID, including notes_count, children_count, description, negative_space (what does NOT belong in the folder), and LLM instructions if set. Optional: include_tree (boolean) to also get ancestor chain and children. Required: id (integer). A row flagged root: true is the space's root (the notes filed outside any folder), which containers-update refuses; set that space's instructions with instructions-update instead.
HJARNI_MCP_CONTAINERS_GETAcciónGet a single container by ID, including notes_count, children_count, description, negative_space (what does NOT belong in the folder), and LLM instructions if set. Optional: include_tree (boolean) to also get ancestor chain and children. Required: id (integer). A row flagged root: true is the space's root (the notes filed outside any folder), which containers-update refuses; set that space's instructions with instructions-update instead.
Parámetros de entrada
idintegerObligatorioContainer ID (required)
include_treebooleanInclude ancestors and children arrays (default: false)
Parámetros de salida
Sin parámetros.
Containers listHJARNI_MCP_CONTAINERS_LISTAcciónList containers (folders) for organizing notes. Each container includes notes_count and children_count. Returns a JSON array, followed by a line stating the total for the folders it pages through and whether more pages remain; folders shared WITH you are appended in full on the first page and counted separately in that line. Optional: team_id (integer) for team containers, scope ('roots' default|'all'|'archived'), page, per_page. Shared containers are automatically included when listing root-level personal containers. The space's root (the personal root, or a team's root folder) is not a folder: it holds the notes filed outside any folder and cannot be renamed, moved, archived or deleted. It is left out of the default 'roots' scope and appears under 'all' flagged root: true.
HJARNI_MCP_CONTAINERS_LISTAcciónList containers (folders) for organizing notes. Each container includes notes_count and children_count. Returns a JSON array, followed by a line stating the total for the folders it pages through and whether more pages remain; folders shared WITH you are appended in full on the first page and counted separately in that line. Optional: team_id (integer) for team containers, scope ('roots' default|'all'|'archived'), page, per_page. Shared containers are automatically included when listing root-level personal containers. The space's root (the personal root, or a team's root folder) is not a folder: it holds the notes filed outside any folder and cannot be renamed, moved, archived or deleted. It is left out of the default 'roots' scope and appears under 'all' flagged root: true.
Parámetros de entrada
pageintegerPage number
scopestringenumFilter scope (default: roots). 'archived' lists archived folders (personal, or the team's with team_id). 'trashed' lists deleted folders still restorable via containers-restore, one entry per delete with restores_with counts. On those entries notes_count and children_count are the folder's OWN notes and sub-folders in that delete, while restores_with totals the whole subtree that comes back with it.
rootsallarchivedtrashedteam_idinteger | nullList containers in this team instead of personal containers. Omit it (or send null) for personal containers.
per_pageintegerResults per page
Parámetros de salida
Sin parámetros.
Containers permissionsHJARNI_MCP_CONTAINERS_PERMISSIONSAcciónChange access only for existing members of the same Hjarni team; this does not invite anyone or publish a folder. Set or clear a team member's role on a team container. Roles cascade to descendants unless a child has its own role. Caller must have admin role on the target container. Required: container_id (integer, must be a team container), user_id (integer, must be a member of the same team), role ('viewer' | 'editor' | 'admin' | 'inherit'). Use 'inherit' to delete an explicit role and fall back to the role inherited from an ancestor (or from team membership). Team owners are always admin and cannot be downgraded. Returns the user's resulting effective_role on that container.
HJARNI_MCP_CONTAINERS_PERMISSIONSAcciónChange access only for existing members of the same Hjarni team; this does not invite anyone or publish a folder. Set or clear a team member's role on a team container. Roles cascade to descendants unless a child has its own role. Caller must have admin role on the target container. Required: container_id (integer, must be a team container), user_id (integer, must be a member of the same team), role ('viewer' | 'editor' | 'admin' | 'inherit'). Use 'inherit' to delete an explicit role and fall back to the role inherited from an ancestor (or from team membership). Team owners are always admin and cannot be downgraded. Returns the user's resulting effective_role on that container.
Parámetros de entrada
rolestringObligatorioenumNew role, or 'inherit' to clear an explicit role (required)
viewereditoradmininherituser_idintegerObligatorioTeam member's user ID (required)
container_idintegerObligatorioTeam container ID (required)
Parámetros de salida
Sin parámetros.
Containers restoreHJARNI_MCP_CONTAINERS_RESTOREAcciónRestore a deleted folder from Trash within the connected user's personal Hjarni account or an authorized team workspace, bringing back everything its delete took -- sub-folders and notes return together, exactly as they were. Find restorable folders with containers-list scope 'trashed'. A note that was deleted TOGETHER with a folder can only come back this way (notes-restore refuses it and names the folder). Required: id (integer, the deleted folder's id).
HJARNI_MCP_CONTAINERS_RESTOREAcciónRestore a deleted folder from Trash within the connected user's personal Hjarni account or an authorized team workspace, bringing back everything its delete took -- sub-folders and notes return together, exactly as they were. Find restorable folders with containers-list scope 'trashed'. A note that was deleted TOGETHER with a folder can only come back this way (notes-restore refuses it and names the folder). Required: id (integer, the deleted folder's id).
Parámetros de entrada
idintegerObligatorioDeleted container ID (required)
Parámetros de salida
Sin parámetros.
Containers updateHJARNI_MCP_CONTAINERS_UPDATEAcciónUpdate a folder within the connected user's personal Hjarni account or an authorized team workspace — rename, set its icon (emoji), change description or negative_space (what does NOT belong here), move to a different parent, set display position, or archive/unarchive it. Works for both personal and team containers the current user can edit (team containers require the editor role). Refuses the space's root (root: true in containers-get); set that space's instructions with instructions-update instead, and pass parent_id null, not the root's id, for a top-level folder. Required: id (integer). Optional: name, emoji (pass null to clear it), description, negative_space (pass null to clear it), parent_id (null for root, must be in the same scope), position (integer, lower = first). Archiving: archived (boolean) archives or unarchives the folder itself; add include_notes: true to also retire/reactivate every note filed in it IN BULK, and include_nested: true to sweep nested sub-folders (and, with include_notes, their notes) too. This is THE way to retire a whole folder — e.g. a finished project or a large import whose notes keep surfacing in dashboards — in one call; never loop notes-update over each note for that. The response then includes containers_changed and notes_changed counts (rows actually flipped; note bodies are not returned). On team containers an include_nested sweep requires the editor role on every affected sub-folder. Caveat on reversing: an unarchive sweep reactivates EVERYTHING it touches — include_nested resurrects sub-folders, and include_notes resurrects notes, that the user had archived individually before the sweep. When that matters, unarchive selectively: archived: false on specific folders, and individual notes via notes-update. Unarchiving a nested folder also reactivates its archived ancestor folders, so the restored folder stays reachable. Find archived folders again later with containers-list scope 'archived'.
HJARNI_MCP_CONTAINERS_UPDATEAcciónUpdate a folder within the connected user's personal Hjarni account or an authorized team workspace — rename, set its icon (emoji), change description or negative_space (what does NOT belong here), move to a different parent, set display position, or archive/unarchive it. Works for both personal and team containers the current user can edit (team containers require the editor role). Refuses the space's root (root: true in containers-get); set that space's instructions with instructions-update instead, and pass parent_id null, not the root's id, for a top-level folder. Required: id (integer). Optional: name, emoji (pass null to clear it), description, negative_space (pass null to clear it), parent_id (null for root, must be in the same scope), position (integer, lower = first). Archiving: archived (boolean) archives or unarchives the folder itself; add include_notes: true to also retire/reactivate every note filed in it IN BULK, and include_nested: true to sweep nested sub-folders (and, with include_notes, their notes) too. This is THE way to retire a whole folder — e.g. a finished project or a large import whose notes keep surfacing in dashboards — in one call; never loop notes-update over each note for that. The response then includes containers_changed and notes_changed counts (rows actually flipped; note bodies are not returned). On team containers an include_nested sweep requires the editor role on every affected sub-folder. Caveat on reversing: an unarchive sweep reactivates EVERYTHING it touches — include_nested resurrects sub-folders, and include_notes resurrects notes, that the user had archived individually before the sweep. When that matters, unarchive selectively: archived: false on specific folders, and individual notes via notes-update. Unarchiving a nested folder also reactivates its archived ancestor folders, so the restored folder stays reachable. Find archived folders again later with containers-list scope 'archived'.
Parámetros de entrada
idintegerObligatorioContainer ID (required)
namestringNew name
emojistring | nullOne emoji shown as the folder's icon, e.g. "📦", or null to clear it back to the plain folder icon.
archivedbooleanArchive (true) or unarchive (false) the folder. On its own this only flags the folder; combine with include_notes/include_nested to retire its contents too.
positionintegerDisplay order position (lower numbers appear first)
parent_idinteger | nullNew parent container ID, or null to move the container to root level. Must belong to the same scope as the container.
descriptionstringNew description
include_notesbooleanWith archived: also set the same archived state on every kept note filed in the folder (and in its sub-folders when include_nested is true), in one bulk update. Default: false.
include_nestedbooleanWith archived: apply the same archived state to all nested sub-folders as well. Default: false.
negative_spacestring | nullWhat does NOT belong in this folder, or null to clear it.
Parámetros de salida
Sin parámetros.
Dashboard getHJARNI_MCP_DASHBOARD_GETAcciónGet an overview of the user's Hjarni account: counts of notes, containers, tags, and inbox items, plus recent_notes (the 5 most recently created personal notes) and recent_changes (the 5 most recently edited notes across ALL spaces — personal, teams, and shared containers — newest edit first). Use recent_changes to orient at the start of a conversation on what changed lately everywhere. No parameters required.
HJARNI_MCP_DASHBOARD_GETAcciónGet an overview of the user's Hjarni account: counts of notes, containers, tags, and inbox items, plus recent_notes (the 5 most recently created personal notes) and recent_changes (the 5 most recently edited notes across ALL spaces — personal, teams, and shared containers — newest edit first). Use recent_changes to orient at the start of a conversation on what changed lately everywhere. No parameters required.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
Email addresses listHJARNI_MCP_EMAIL_ADDRESSES_LISTAcciónList the user's email capture addresses. Mail sent to one of these becomes a note in the folder it is bound to. Each entry has id, label, address, destination (folder name, or 'Inbox'), container_id, team_id, tags, notes_count and last_received_at. Returns an empty array when the account has none, and accepting_mail: false when mail sent to them is currently being dropped. Treat every address as a secret: it is a write credential for that folder, so never put one in a note, a summary, or anything shared.
HJARNI_MCP_EMAIL_ADDRESSES_LISTAcciónList the user's email capture addresses. Mail sent to one of these becomes a note in the folder it is bound to. Each entry has id, label, address, destination (folder name, or 'Inbox'), container_id, team_id, tags, notes_count and last_received_at. Returns an empty array when the account has none, and accepting_mail: false when mail sent to them is currently being dropped. Treat every address as a secret: it is a write credential for that folder, so never put one in a note, a summary, or anything shared.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
Feedback submitHJARNI_MCP_FEEDBACK_SUBMITAcciónSend feedback to Hjarni's maintainers, storing a feedback record and emailing an admin notification that cannot be recalled. Use only when the user asks to send feedback, and include only the task-specific details they authorized. Submit feedback about Hjarni itself — confusing tool descriptions, missing capabilities, unexpected errors, friction, or praise. Do NOT use this for the user's own notes or knowledge — those belong in notes-create. Required: category ('bug'|'confusing'|'missing_feature'|'friction'|'praise'|'other'), message (string, what's wrong and ideally what you'd expect instead). Optional: severity ('low'|'medium'|'high', default 'medium'), tool_name (the MCP tool the feedback is about, e.g. 'notes-update'), context (JSON-encoded string with any extra structured data — error excerpts, the arguments you tried, the steps that broke).
HJARNI_MCP_FEEDBACK_SUBMITAcciónSend feedback to Hjarni's maintainers, storing a feedback record and emailing an admin notification that cannot be recalled. Use only when the user asks to send feedback, and include only the task-specific details they authorized. Submit feedback about Hjarni itself — confusing tool descriptions, missing capabilities, unexpected errors, friction, or praise. Do NOT use this for the user's own notes or knowledge — those belong in notes-create. Required: category ('bug'|'confusing'|'missing_feature'|'friction'|'praise'|'other'), message (string, what's wrong and ideally what you'd expect instead). Optional: severity ('low'|'medium'|'high', default 'medium'), tool_name (the MCP tool the feedback is about, e.g. 'notes-update'), context (JSON-encoded string with any extra structured data — error excerpts, the arguments you tried, the steps that broke).
Parámetros de entrada
contextstringOptional extra context as a JSON-encoded string (e.g. error messages, arguments tried, related note IDs). Non-JSON strings are stored as plain text.
messagestringObligatorioThe feedback itself. Be specific — describe what happened, what you expected, and (if relevant) what would have helped. (required, max 4000 chars)
categorystringObligatorioenumWhat kind of feedback this is (required)
bugconfusingmissing_featurefrictionpraiseotherseveritystringenumHow impactful this is for users (default: medium)
lowmediumhightool_namestringThe MCP tool this feedback is about, if any (e.g. 'notes-update', 'search')
Parámetros de salida
Sin parámetros.
Files attachHJARNI_MCP_FILES_ATTACHAcciónAttach a file to one of your personal notes via base64-encoded data (personal notes only; for team or shared notes use files-create_upload_url). Prefer files-create_upload_url for large files to save tokens. Required: note_id (integer), filename (string), data (base64 string). Optional: content_type (MIME type, default: application/octet-stream), description.
HJARNI_MCP_FILES_ATTACHAcciónAttach a file to one of your personal notes via base64-encoded data (personal notes only; for team or shared notes use files-create_upload_url). Prefer files-create_upload_url for large files to save tokens. Required: note_id (integer), filename (string), data (base64 string). Optional: content_type (MIME type, default: application/octet-stream), description.
Parámetros de entrada
datastringObligatorioBase64-encoded file contents (required)
note_idintegerObligatorioNote ID (required)
filenamestringObligatorioFilename (e.g. report.pdf) (required)
descriptionstringOptional file description
content_typestringMIME type (e.g. application/pdf). Defaults to application/octet-stream
Parámetros de salida
Sin parámetros.
Files attach from urlHJARNI_MCP_FILES_ATTACH_FROM_URLAcciónFetch a file from a public URL or a native ChatGPT file reference and attach it to one of your personal notes (personal notes only; for team or shared notes use files-create_upload_url). Required: note_id and either url or file. In ChatGPT, prefer file for an available file reference, including generated or processed files when ChatGPT can provide one. ChatGPT supplies the temporary download URL and file ID; never invent them, pass a local file path, or encode the bytes as base64. If both sources are supplied, a non-empty file reference takes precedence; an all-blank file placeholder is ignored. Follows up to three redirects. Optional: filename (overrides reference metadata, otherwise derived from URL), content_type (overrides reference metadata, otherwise from HTTP response), description. When no reference or public URL is available, use files-create_upload_url.
HJARNI_MCP_FILES_ATTACH_FROM_URLAcciónFetch a file from a public URL or a native ChatGPT file reference and attach it to one of your personal notes (personal notes only; for team or shared notes use files-create_upload_url). Required: note_id and either url or file. In ChatGPT, prefer file for an available file reference, including generated or processed files when ChatGPT can provide one. ChatGPT supplies the temporary download URL and file ID; never invent them, pass a local file path, or encode the bytes as base64. If both sources are supplied, a non-empty file reference takes precedence; an all-blank file placeholder is ignored. Follows up to three redirects. Optional: filename (overrides reference metadata, otherwise derived from URL), content_type (overrides reference metadata, otherwise from HTTP response), description. When no reference or public URL is available, use files-create_upload_url.
Parámetros de entrada
urlstringPublic URL to fetch; optional when file is supplied
fileobjectNative file reference supplied by ChatGPT; optional when url is supplied
note_idintegerObligatorioPersonal note ID to attach the file to
filenamestringOverride filename; otherwise reference metadata or URL path
descriptionstringOptional file description
content_typestringOverride MIME type; otherwise reference metadata or HTTP response
Parámetros de salida
Sin parámetros.
Files check uploadHJARNI_MCP_FILES_CHECK_UPLOADAcciónCheck the status of a file upload created by files-create_upload_url. Returns status: 'pending' (not uploaded yet), 'completed' (file attached, includes file metadata), or 'expired' (link timed out). Required: token (string, from files-create_upload_url response).
HJARNI_MCP_FILES_CHECK_UPLOADAcciónCheck the status of a file upload created by files-create_upload_url. Returns status: 'pending' (not uploaded yet), 'completed' (file attached, includes file metadata), or 'expired' (link timed out). Required: token (string, from files-create_upload_url response).
Parámetros de entrada
tokenstringObligatorioUpload token from files-create_upload_url response (required)
Parámetros de salida
Sin parámetros.
Files create upload urlHJARNI_MCP_FILES_CREATE_UPLOAD_URLAcciónGenerate a one-time upload link for attaching files to a note. Share the upload_url with the user so they can upload directly in their browser, which saves tokens by avoiding base64 encoding. Some clients also render this result as an inline drop-zone the user can drop files into; you cannot detect that, so always share the link either way. The link expires after 30 minutes and accepts up to max_files_per_upload files per request, each up to max_file_size_bytes; when remaining_bytes/remaining_files are present the whole batch must also fit inside those. Use files-check_upload to verify completion. Required: note_id (integer). Optional: description.
HJARNI_MCP_FILES_CREATE_UPLOAD_URLAcciónGenerate a one-time upload link for attaching files to a note. Share the upload_url with the user so they can upload directly in their browser, which saves tokens by avoiding base64 encoding. Some clients also render this result as an inline drop-zone the user can drop files into; you cannot detect that, so always share the link either way. The link expires after 30 minutes and accepts up to max_files_per_upload files per request, each up to max_file_size_bytes; when remaining_bytes/remaining_files are present the whole batch must also fit inside those. Use files-check_upload to verify completion. Required: note_id (integer). Optional: description.
Parámetros de entrada
note_idintegerObligatorioNote ID to attach the file to (required)
descriptionstringOptional file description
Parámetros de salida
tokenstringObligatorioPass to files-check_upload to confirm completion
note_idintegerObligatorioNote the files will attach to
expires_atstringObligatorioISO 8601 expiry instant
note_titlestringObligatorioTitle of that note
upload_urlstringObligatorioOne-time upload URL to share with the user
remaining_bytesintegerBytes left in the account's file allowance; absent when only the per-file cap applies
remaining_filesintegerFiles left in the account's file allowance; absent when only the per-file cap applies
expires_in_secondsintegerObligatorioSeconds until the link expires, measured server-side
max_file_size_bytesintegerObligatorioLargest single file this upload will accept
max_files_per_uploadintegerObligatorioMost files one upload request may carry
Files get download urlHJARNI_MCP_FILES_GET_DOWNLOAD_URLAcciónGet a time-limited download URL for a file attached to a note. Share the URL with the user to download in their browser. The URL expires 15 minutes after it is issued (see download_url_expires_at in the response); request a fresh one rather than reusing an old URL. It requires no login while valid, so treat it as a credential. Required: note_id (integer), file_id (integer, from notes-get response).
HJARNI_MCP_FILES_GET_DOWNLOAD_URLAcciónGet a time-limited download URL for a file attached to a note. Share the URL with the user to download in their browser. The URL expires 15 minutes after it is issued (see download_url_expires_at in the response); request a fresh one rather than reusing an old URL. It requires no login while valid, so treat it as a credential. Required: note_id (integer), file_id (integer, from notes-get response).
Parámetros de entrada
file_idintegerObligatorioFile ID from notes-get response (required)
note_idintegerObligatorioNote ID (required)
Parámetros de salida
Sin parámetros.
Files removeHJARNI_MCP_FILES_REMOVEAcciónPermanently remove a file attachment from one of your personal notes (personal notes only). This action is irreversible. Required: note_id (integer), file_id (integer, from notes-get response).
HJARNI_MCP_FILES_REMOVEAcciónPermanently remove a file attachment from one of your personal notes (personal notes only). This action is irreversible. Required: note_id (integer), file_id (integer, from notes-get response).
Parámetros de entrada
file_idintegerObligatorioFile ID from notes-get response (required)
note_idintegerObligatorioNote ID (required)
Parámetros de salida
Sin parámetros.
Instructions getHJARNI_MCP_INSTRUCTIONS_GETAcciónUse this when starting work with the user's Hjarni notes, and read level 'brain' for their preferences, the defaults and any agent instructions, or when you need one folder's or team's rules. After that, notes-get returns the instructions each note inherits, so no folder lookup is needed before editing. Returns the LLM instructions at the specified level. Optional: level ('brain'|'personal_root'|'container'|'team'), defaults to 'brain' if omitted or blank; the response echoes resolved_level and defaulted_level (true when the level was defaulted). Optional: id (integer, required for 'container' and 'team' levels). 'container' level takes a personal (or shared) container id and returns the container's own llm_instructions plus inherited_instructions, the layers above it that it inherits, outermost first (the container's own layer is not repeated there); each entry carries a `level` field ('brain'|'personal_root'|'team'|'container'). Team container ids are not addressable here — read a team note's chain from notes-get, or the team's own instructions with level 'team'. For an agent token, level 'brain' also returns agent_instructions, written by its person for that agent alone; brain_instructions_off: true means its person kept their brain instructions from it.
HJARNI_MCP_INSTRUCTIONS_GETAcciónUse this when starting work with the user's Hjarni notes, and read level 'brain' for their preferences, the defaults and any agent instructions, or when you need one folder's or team's rules. After that, notes-get returns the instructions each note inherits, so no folder lookup is needed before editing. Returns the LLM instructions at the specified level. Optional: level ('brain'|'personal_root'|'container'|'team'), defaults to 'brain' if omitted or blank; the response echoes resolved_level and defaulted_level (true when the level was defaulted). Optional: id (integer, required for 'container' and 'team' levels). 'container' level takes a personal (or shared) container id and returns the container's own llm_instructions plus inherited_instructions, the layers above it that it inherits, outermost first (the container's own layer is not repeated there); each entry carries a `level` field ('brain'|'personal_root'|'team'|'container'). Team container ids are not addressable here — read a team note's chain from notes-get, or the team's own instructions with level 'team'. For an agent token, level 'brain' also returns agent_instructions, written by its person for that agent alone; brain_instructions_off: true means its person kept their brain instructions from it.
Parámetros de entrada
idintegerContainer ID or Team ID (required for 'container' and 'team' levels)
levelstringenumInstruction level: 'brain' (global), 'personal_root', 'container', or 'team'. Defaults to 'brain' if omitted or blank.
brainpersonal_rootcontainerteam
Parámetros de salida
Sin parámetros.
Instructions updateHJARNI_MCP_INSTRUCTIONS_UPDATEAcciónUpdate LLM instructions at the specified level. Required: level ('brain'|'personal_root'|'container'|'team'), instructions (string). Optional: id (integer, required for 'container' and 'team'), mode ('replace' default|'append'). The 'container' level updates personal containers only; to set instructions for a team, use level 'team' (team owners only). In 'replace' mode (default), the provided text overwrites existing instructions. In 'append' mode, the text is appended to existing instructions with a newline separator. Always read current instructions first before replacing to avoid losing existing content.
HJARNI_MCP_INSTRUCTIONS_UPDATEAcciónUpdate LLM instructions at the specified level. Required: level ('brain'|'personal_root'|'container'|'team'), instructions (string). Optional: id (integer, required for 'container' and 'team'), mode ('replace' default|'append'). The 'container' level updates personal containers only; to set instructions for a team, use level 'team' (team owners only). In 'replace' mode (default), the provided text overwrites existing instructions. In 'append' mode, the text is appended to existing instructions with a newline separator. Always read current instructions first before replacing to avoid losing existing content.
Parámetros de entrada
idintegerContainer ID or Team ID (required for 'container' and 'team' levels)
modestringenumUpdate mode: 'replace' (default) overwrites existing instructions, 'append' adds to them
replaceappendlevelstringObligatorioenumInstruction level to update (required)
brainpersonal_rootcontainerteaminstructionsstringObligatorioThe instructions text. In 'replace' mode (default), this overwrites existing instructions. In 'append' mode, this is appended to existing instructions.
Parámetros de salida
Sin parámetros.
Links manageHJARNI_MCP_LINKS_MANAGEAcciónCreate or remove a bidirectional link between two notes. Required: action ('link'|'unlink'), source_note_id (integer), target_note_id (integer). Prefer wiki-link syntax [[id:Title]] in note bodies for inline linking — use this tool for programmatic links without modifying body text. Unlinking is destructive and cannot be undone.
HJARNI_MCP_LINKS_MANAGEAcciónCreate or remove a bidirectional link between two notes. Required: action ('link'|'unlink'), source_note_id (integer), target_note_id (integer). Prefer wiki-link syntax [[id:Title]] in note bodies for inline linking — use this tool for programmatic links without modifying body text. Unlinking is destructive and cannot be undone.
Parámetros de entrada
actionstringObligatorioenumAction: 'link' to create a link, 'unlink' to remove it (required)
linkunlinksource_note_idintegerObligatorioFirst note ID (required)
target_note_idintegerObligatorioSecond note ID (required)
Parámetros de salida
Sin parámetros.
MeHJARNI_MCP_MEAcciónUse this when starting work with the user's Hjarni account, or when you need their current profile, onboarding state, team memberships or allowances. Reuse the result within a conversation unless the user asks again or that state may have changed. It lets you greet the user by first name, run the onboarding script only when needed, route notes to the right team space, and avoid suggesting features their account does not include. Returns onboarding.completed (boolean) and onboarding.missing_steps (array of 'connect_mcp' | 'first_note'), which together tell you what, if any, setup is left. When onboarding.next_action is present, follow it before anything else: it is this account's setup script, and it names the starter note to fill in. May include a `nudge` (key, message, url) — one frequency-capped suggestion; see the NUDGES section of the server instructions for how to handle it. Exposes the user's email address — same data the user sees in account settings, but never billing or token metadata. No parameters required.
HJARNI_MCP_MEAcciónUse this when starting work with the user's Hjarni account, or when you need their current profile, onboarding state, team memberships or allowances. Reuse the result within a conversation unless the user asks again or that state may have changed. It lets you greet the user by first name, run the onboarding script only when needed, route notes to the right team space, and avoid suggesting features their account does not include. Returns onboarding.completed (boolean) and onboarding.missing_steps (array of 'connect_mcp' | 'first_note'), which together tell you what, if any, setup is left. When onboarding.next_action is present, follow it before anything else: it is this account's setup script, and it names the starter note to fill in. May include a `nudge` (key, message, url) — one frequency-capped suggestion; see the NUDGES section of the server instructions for how to handle it. Exposes the user's email address — same data the user sees in account settings, but never billing or token metadata. No parameters required.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
Notes createHJARNI_MCP_NOTES_CREATEAcciónUse this when the user asks to save, remember or write down something for later, such as a decision, a meeting summary, a preference or research. Do not use it when a note on the topic already exists: search first and update that note with notes-update. Creates the note in the user's personal space, an authorized shared folder or a team workspace they belong to. The server enforces write access. Approaching or reaching a note quota may email an account-limit notification to the account or team owner; sent emails cannot be recalled. Required: title (string). Always include a 2-3 sentence summary too (required by convention, even though the schema only enforces title) so the note is useful to future LLM sessions. Optional: body (Markdown with [[id:Note Title]] wiki-links), summary, source_url, container_id, tag_list (comma-separated), team_id (to create in a team), review_after (ISO 8601 datetime, only set this for time-boxed notes that should flag themselves stale after a date). A new note starts verified (status 'active'). Example: {title: 'Meeting Notes', body: '## Agenda\n...', container_id: 5, tag_list: 'meetings, q4'}.
HJARNI_MCP_NOTES_CREATEAcciónUse this when the user asks to save, remember or write down something for later, such as a decision, a meeting summary, a preference or research. Do not use it when a note on the topic already exists: search first and update that note with notes-update. Creates the note in the user's personal space, an authorized shared folder or a team workspace they belong to. The server enforces write access. Approaching or reaching a note quota may email an account-limit notification to the account or team owner; sent emails cannot be recalled. Required: title (string). Always include a 2-3 sentence summary too (required by convention, even though the schema only enforces title) so the note is useful to future LLM sessions. Optional: body (Markdown with [[id:Note Title]] wiki-links), summary, source_url, container_id, tag_list (comma-separated), team_id (to create in a team), review_after (ISO 8601 datetime, only set this for time-boxed notes that should flag themselves stale after a date). A new note starts verified (status 'active'). Example: {title: 'Meeting Notes', body: '## Agenda\n...', container_id: 5, tag_list: 'meetings, q4'}.
Parámetros de entrada
bodystringNote body content (Markdown with [[id:Note Title]] wiki-links)
titlestringObligatorioNote title (required)
summarystringA 2-3 sentence summary of the note. Always provide one.
team_idinteger | nullCreate note in this team instead of personal space. Omit it (or send null) for personal space.
tag_liststringComma-separated list of tags (e.g., 'ruby, rails, testing')
source_urlstringSource URL reference
container_idintegerContainer ID to place the note in
review_afterstring | nullOptional ISO 8601 datetime after which the note should be treated as stale. Use for time-boxed notes (e.g. '2026-12-31').
Parámetros de salida
Sin parámetros.
Notes deleteHJARNI_MCP_NOTES_DELETEAcciónMove a note to Trash within the connected user's personal Hjarni account or an authorized team workspace. This is RECOVERABLE — the note (with its body, attachments, and history) is restorable with notes-restore until its purge date (default 30 days); it is not an immediate permanent erase. Deleting the wrong note can be undone with notes-restore. Works on your own personal notes and on team notes where you have the editor role. You cannot delete notes in a shared container (only the owner can). Required: id (integer).
HJARNI_MCP_NOTES_DELETEAcciónMove a note to Trash within the connected user's personal Hjarni account or an authorized team workspace. This is RECOVERABLE — the note (with its body, attachments, and history) is restorable with notes-restore until its purge date (default 30 days); it is not an immediate permanent erase. Deleting the wrong note can be undone with notes-restore. Works on your own personal notes and on team notes where you have the editor role. You cannot delete notes in a shared container (only the owner can). Required: id (integer).
Parámetros de entrada
idintegerObligatorioNote ID (required)
Parámetros de salida
Sin parámetros.
Notes getHJARNI_MCP_NOTES_GETAcciónUse this when you need a note's full text, usually after search or notes-list found it, or before editing it. Do not use it to find notes: it takes an id. Returns one note with its full Markdown body, tags, container path, linked notes (every note it links to or is linked from), backlinks (the subset that links to it), file attachments, and inherited_instructions — every user-written LLM instruction layer that applies to the note, outermost first (an inbox note still carries brain plus its space root), so no separate instructions lookup is needed before editing. A missing brain entry means the user has no custom brain instructions; the defaults come from instructions-get with level 'brain'. A note in Trash returns a status: 'trashed' summary (id, title, purge deadline, how to restore) instead of its content — restore it with notes-restore to read or edit it. Required: id (integer).
HJARNI_MCP_NOTES_GETAcciónUse this when you need a note's full text, usually after search or notes-list found it, or before editing it. Do not use it to find notes: it takes an id. Returns one note with its full Markdown body, tags, container path, linked notes (every note it links to or is linked from), backlinks (the subset that links to it), file attachments, and inherited_instructions — every user-written LLM instruction layer that applies to the note, outermost first (an inbox note still carries brain plus its space root), so no separate instructions lookup is needed before editing. A missing brain entry means the user has no custom brain instructions; the defaults come from instructions-get with level 'brain'. A note in Trash returns a status: 'trashed' summary (id, title, purge deadline, how to restore) instead of its content — restore it with notes-restore to read or edit it. Required: id (integer).
Parámetros de entrada
idintegerObligatorioNote ID (required)
Parámetros de salida
Sin parámetros.
Notes historyHJARNI_MCP_NOTES_HISTORYAcciónRead a note's revision history and provenance: who wrote each version (you, the user, or which AI client), when, and what changed. Use it to attribute facts to their source and to see recent edits before making your own. Read-only. Required: id (integer). Optional: limit (default 20, max 100), before_seq (paginate to older revisions), include_body (boolean — reconstruct each version's full text), seq (integer — return only that revision, with its full reconstructed body).
HJARNI_MCP_NOTES_HISTORYAcciónRead a note's revision history and provenance: who wrote each version (you, the user, or which AI client), when, and what changed. Use it to attribute facts to their source and to see recent edits before making your own. Read-only. Required: id (integer). Optional: limit (default 20, max 100), before_seq (paginate to older revisions), include_body (boolean — reconstruct each version's full text), seq (integer — return only that revision, with its full reconstructed body).
Parámetros de entrada
idintegerObligatorioNote ID (required)
seqintegerReturn only this revision, including its reconstructed body
limitintegerMax revisions, newest first (default 20, max 100)
before_seqintegerReturn revisions older than this seq (pagination)
include_bodybooleanReconstruct and include each revision's full body (default false)
Parámetros de salida
Sin parámetros.
Notes listHJARNI_MCP_NOTES_LISTAcciónUse this when the user wants to browse or list their stored knowledge and memories (preferences, workflows, projects, meeting notes, references), such as recent notes, the inbox, notes gone stale, or one folder, tag or scope. Do not use it to find a topic or keyword: use search for that. Lists notes with optional filtering, sorting and pagination. Returns paginated results as a JSON array, followed by a line stating how many notes matched in total and whether more pages remain — read it to know if you have the whole folder before acting on it. Optional: team_id (integer) to list team notes, scope ('active'|'archived'|'inbox'|'favorited'|'trashed'), container_id (integer) with include_nested (boolean), tags (array of strings, AND logic), tag_ids (array of integers, AND logic), summary_stale (boolean, filter to notes with outdated summaries), stale (boolean, filter to notes whose freshness is stale — past their review_after date or unverified for a while), sort ('recent'|'oldest'|'title'), page (integer, default 1), per_page (integer, max 100, default 25), include_body (boolean, default false — include each note's full body, so a scoped/paginated listing can retrieve complete contents without a notes-get call per note; withheld for trashed notes, same as notes-get), include_instructions (boolean, defaults to include_body — include each note's inherited_instructions, the same chain notes-get returns, so a full-body listing also carries the rules governing those notes; withheld for trashed notes). container_id can be combined with team_id to list a specific team container. Example: list ruby-tagged notes in a container: {container_id: 5, tags: ['ruby']}.
HJARNI_MCP_NOTES_LISTAcciónUse this when the user wants to browse or list their stored knowledge and memories (preferences, workflows, projects, meeting notes, references), such as recent notes, the inbox, notes gone stale, or one folder, tag or scope. Do not use it to find a topic or keyword: use search for that. Lists notes with optional filtering, sorting and pagination. Returns paginated results as a JSON array, followed by a line stating how many notes matched in total and whether more pages remain — read it to know if you have the whole folder before acting on it. Optional: team_id (integer) to list team notes, scope ('active'|'archived'|'inbox'|'favorited'|'trashed'), container_id (integer) with include_nested (boolean), tags (array of strings, AND logic), tag_ids (array of integers, AND logic), summary_stale (boolean, filter to notes with outdated summaries), stale (boolean, filter to notes whose freshness is stale — past their review_after date or unverified for a while), sort ('recent'|'oldest'|'title'), page (integer, default 1), per_page (integer, max 100, default 25), include_body (boolean, default false — include each note's full body, so a scoped/paginated listing can retrieve complete contents without a notes-get call per note; withheld for trashed notes, same as notes-get), include_instructions (boolean, defaults to include_body — include each note's inherited_instructions, the same chain notes-get returns, so a full-body listing also carries the rules governing those notes; withheld for trashed notes). container_id can be combined with team_id to list a specific team container. Example: list ruby-tagged notes in a container: {container_id: 5, tags: ['ruby']}.
Parámetros de entrada
pageintegerPage number (default: 1)
sortstringenumSort order: 'recent' (updated_at desc, default), 'oldest' (updated_at asc), or 'title' (alphabetical)
recentoldesttitletagsstring[]Filter to notes with ALL these tags by name (AND logic). Example: ['ruby', 'rails']
scopestringenumFilter scope (default: active). 'inbox' and 'favorited' only for personal notes; 'trashed' lists the recoverable Trash — restore an entry with notes-restore.
activearchivedinboxfavoritedtrashedstalebooleanFilter to notes whose freshness is stale — past their review_after date or unverified beyond the freshness window (default: not filtered)
tag_idsinteger[]Filter to notes with ALL these tags by ID (AND logic)
team_idinteger | nullList notes in this team instead of personal notes. Omit it (or send null) for personal notes.
per_pageintegerResults per page, max 100 (default: 25)
container_idintegerFilter by container ID
include_bodybooleanInclude each note's full body in the results (default: false)
summary_stalebooleanFilter to notes with outdated summaries (default: not filtered)
include_nestedbooleanInclude notes from sub-containers when container_id is set (default: false)
include_instructionsbooleanInclude inherited_instructions (brain, space root, ancestor and container instruction layers, outermost first) on each note — the same chain notes-get returns. Defaults to the value of include_body, so full-body listings carry their governing instructions unless you pass false.
Parámetros de salida
Sin parámetros.
Notes openHJARNI_MCP_NOTES_OPENAcciónOpen a note in the Hjarni note panel beside the conversation, where the user can read it, edit the title and body, and save. Use it when the user asks to open, show or work on a specific note; find the id with search first. Returns the same data as notes-get (including body and lock_version), plus space (personal, team or shared), can_edit and uri. Clients without panels get just that data. Without an id the panel opens on a note picker. The user may edit the note in the panel: before changing it with notes-update, pass expected_lock_version from your latest read. Optional: id (integer).
HJARNI_MCP_NOTES_OPENAcciónOpen a note in the Hjarni note panel beside the conversation, where the user can read it, edit the title and body, and save. Use it when the user asks to open, show or work on a specific note; find the id with search first. Returns the same data as notes-get (including body and lock_version), plus space (personal, team or shared), can_edit and uri. Clients without panels get just that data. Without an id the panel opens on a note picker. The user may edit the note in the panel: before changing it with notes-update, pass expected_lock_version from your latest read. Optional: id (integer).
Parámetros de entrada
idinteger | nullNote ID to open. Omit it to show a picker of recent notes.
Parámetros de salida
Sin parámetros.
Notes panelHJARNI_MCP_NOTES_PANELAcciónUsed 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:<id>; name, description, llm_instructions, negative_space), 'instructions' (place personal: brain, personal; place team:<id>: 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), 'keep_summary' (id, lock_version: clears summary_stale and leaves the summary as it is; a lock_version that is no longer current answers status 'stale'), '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:<id>, 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:<id>, op rename|merge|delete, name), 'share' (id, or place folder:<id>; 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).
HJARNI_MCP_NOTES_PANELAcciónUsed 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:<id>; name, description, llm_instructions, negative_space), 'instructions' (place personal: brain, personal; place team:<id>: 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), 'keep_summary' (id, lock_version: clears summary_stale and leaves the summary as it is; a lock_version that is no longer current answers status 'stale'), '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:<id>, 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:<id>, op rename|merge|delete, name), 'share' (id, or place folder:<id>; 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).
Parámetros de entrada
idintegerNote ID (required for get, preview and save)
opstringtag: rename|merge|delete; share: status|enable|disable|editing_on|editing_off; bulk: move|archive|unarchive|trash
tostringfolder_move: the new parent: personal, team:<id> or folder:<id>
idsinteger[]bulk: the notes
seqintegerhistory, revert: the version
bodystringsave: new body (full replacement); preview: Markdown to render
namestringcreate_folder, update_folder: folder name; tag: the new name, or the tag to merge into
sortstringenumbrowse: note order
recentoldesttitleteamstringinstructions (place team:<id>): the team's instructions (owners only)
brainstringinstructions (place personal): instructions for everything
hunksobjectsave with resolve: hunk index => 'saved' or 'draft'
indexintegertoggle: which task checkbox, counted from 0 in the note
placestringbrowse: 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>
querystringsearch: text to find; empty lists recently edited notes
spacestringsearch: only personal, shared or team:<id>
titlestringsave: new title
actionstringObligatorioenumWhat to do (required)
getsearchbrowsepreviewsavetogglecreate_notecreate_folderupdate_folderinstructionsfolder_optionsmove+21checkedbooleantoggle: the box's new state
file_idintegerfile_description: the file
resolvestringenumsave: apply per-hunk choices from a conflict
merge_hunkssummarystringsave: new summary
add_tagsstring[]save: tags to add (applied to the saved tags, never a conflict)
archivedbooleanarchive: archive (true) or unarchive (false)
personalstringinstructions (place personal): instructions for Personal
directionstringenumfolder_reorder
updownfavoritedbooleanfavorite: the star's new state
source_urlstringsave: new source URL
descriptionstringupdate_folder: what the folder is for; file_description: the file's description
remove_tagsstring[]save: tags to remove
editor_usageobjectsave: how often each editor action was used (the panel's beta editor), action name => count
lock_versionintegersave: the lock_version the edit started from (required for save); keep_summary: the version the person read
negative_spacestringupdate_folder: what does not belong in the folder
llm_instructionsstringupdate_folder: the folder's AI instructions
known_lock_versionintegerget: the lock_version the panel already shows
Parámetros de salida
Sin parámetros.
Notes restoreHJARNI_MCP_NOTES_RESTOREAcciónRestore a note that notes-delete moved to Trash within the connected user's personal Hjarni account or an authorized team workspace, bringing back its body, tags, attachments, and history. Only works before the note's purge date. Required: id (integer) — the same note id you deleted.
HJARNI_MCP_NOTES_RESTOREAcciónRestore a note that notes-delete moved to Trash within the connected user's personal Hjarni account or an authorized team workspace, bringing back its body, tags, attachments, and history. Only works before the note's purge date. Required: id (integer) — the same note id you deleted.
Parámetros de entrada
idintegerObligatorioNote ID (required)
Parámetros de salida
Sin parámetros.
Notes revertHJARNI_MCP_NOTES_REVERTAcciónRevert a note's body to an earlier revision (find the seq via notes-history). This does NOT erase history — it appends a NEW revision whose body equals the chosen earlier one, attributed to you, so the revert can itself be undone. Use only when the user explicitly asks to undo a change. Optional expected_lock_version (from notes-get) rejects the revert if the note changed since you read it, instead of clobbering that change. Required: id (integer), seq (integer).
HJARNI_MCP_NOTES_REVERTAcciónRevert a note's body to an earlier revision (find the seq via notes-history). This does NOT erase history — it appends a NEW revision whose body equals the chosen earlier one, attributed to you, so the revert can itself be undone. Use only when the user explicitly asks to undo a change. Optional expected_lock_version (from notes-get) rejects the revert if the note changed since you read it, instead of clobbering that change. Required: id (integer), seq (integer).
Parámetros de entrada
idintegerObligatorioNote ID (required)
seqintegerObligatorioThe revision seq to restore the body to (from notes-history)
expected_lock_versionintegerOptional concurrent-edit guard; pass the lock_version you last saw via notes-get
Parámetros de salida
Sin parámetros.
Notes search mentionsHJARNI_MCP_NOTES_SEARCH_MENTIONSAcciónUsed only by the ChatGPT composer's @-mention picker: returns the user's notes matching a typeahead query as selectable resources, each with its space and folder as a subtitle. Assistants should use search instead. Required: query (string, may be empty for recent notes).
HJARNI_MCP_NOTES_SEARCH_MENTIONSAcciónUsed only by the ChatGPT composer's @-mention picker: returns the user's notes matching a typeahead query as selectable resources, each with its space and folder as a subtitle. Assistants should use search instead. Required: query (string, may be empty for recent notes).
Parámetros de entrada
querystringObligatorioSearch text; empty returns recently edited notes
Parámetros de salida
itemsobject[]Obligatorio
Notes updateHJARNI_MCP_NOTES_UPDATEAcciónUse this when the user asks to change, add to, correct, move, tag or archive a note they already have. Do not use it for a topic with no note yet: use notes-create. Edits the content, moves the note to another folder (set container_id, or null for the inbox), archives or favorites it, or changes its tags. This is the tool for moving notes between folders; there is no separate move tool. Required: id (integer). Optional content (exactly one body-mutation mode at a time): title, body (full replace), append_body (appends to existing body), insert_after + insert_body (insert text immediately after a unique anchor snippet from the existing body), insert_before + insert_body (insert before a unique anchor), replace_find (+ optional replace_with) (replace a unique snippet; omit replace_with entirely to delete the snippet). Markdown-structure ops (heading/section/checklist aware — safer than eyeballing a unique snippet on long notes): replace_section + section_body (replace everything UNDER a heading, keeping the heading line); append_to_section + section_body (add content at the END of a section — the safe 'insert under heading' when you don't know its last line); rename_heading + new_heading (rename a heading in place, preserving its level unless new_heading carries its own '#'); check_item / uncheck_item (tick/untick a checklist item by its text, e.g. '- [ ] ship it'). Headings and checklist items must each match exactly one line. Anchor and find snippets must match exactly once; include enough surrounding context to disambiguate. Also optional: summary, source_url. Freshness: verified (boolean — pass true to mark the note re-confirmed as still true right now; only send this after the user has actually confirmed it), review_after (ISO 8601 datetime to time-box the note, or null to clear it). Organization: container_id (move note), archived (boolean — works on your own personal notes and on team notes where you have the editor role; notes in shared containers are owner-only), favorited (boolean). Tags: tag_list (full replace, comma-separated), add_tags, remove_tags. tag_list takes precedence over add_tags/remove_tags. Concurrent edit safety: pass expected_lock_version (the lock_version you saw when you last read the note via notes-get / notes-list / search) whenever you want a stale-write guard. If it doesn't match the current version, the update is rejected with the current state included so you can re-read and re-apply (append_body-only calls are exempt; see expected_lock_version). Surgical edits (append_body / insert_after / insert_before / replace_find) are anchor-based and so don't *need* expected_lock_version for their body change — but if you also change title / summary / container_id alongside, those fields can still silently overwrite a newer save unless you supply expected_lock_version. Examples: insert under a heading {id: 42, append_to_section: 'Open Questions', section_body: '- Should we ship Friday?'}; replace a section {id: 42, replace_section: '## Status', section_body: 'Shipped 🎉'}; rename a heading {id: 42, rename_heading: 'TODO', new_heading: 'Done'}; tick a checklist item {id: 42, check_item: 'ship it'}; fix a typo {id: 42, replace_find: 'recieved', replace_with: 'received'}; safe full rewrite {id: 42, body: '...', expected_lock_version: 5}. Every edit is recorded as a named, revertable revision attributed to you — use notes-history to see who changed what, and notes-revert to undo a change.
HJARNI_MCP_NOTES_UPDATEAcciónUse this when the user asks to change, add to, correct, move, tag or archive a note they already have. Do not use it for a topic with no note yet: use notes-create. Edits the content, moves the note to another folder (set container_id, or null for the inbox), archives or favorites it, or changes its tags. This is the tool for moving notes between folders; there is no separate move tool. Required: id (integer). Optional content (exactly one body-mutation mode at a time): title, body (full replace), append_body (appends to existing body), insert_after + insert_body (insert text immediately after a unique anchor snippet from the existing body), insert_before + insert_body (insert before a unique anchor), replace_find (+ optional replace_with) (replace a unique snippet; omit replace_with entirely to delete the snippet). Markdown-structure ops (heading/section/checklist aware — safer than eyeballing a unique snippet on long notes): replace_section + section_body (replace everything UNDER a heading, keeping the heading line); append_to_section + section_body (add content at the END of a section — the safe 'insert under heading' when you don't know its last line); rename_heading + new_heading (rename a heading in place, preserving its level unless new_heading carries its own '#'); check_item / uncheck_item (tick/untick a checklist item by its text, e.g. '- [ ] ship it'). Headings and checklist items must each match exactly one line. Anchor and find snippets must match exactly once; include enough surrounding context to disambiguate. Also optional: summary, source_url. Freshness: verified (boolean — pass true to mark the note re-confirmed as still true right now; only send this after the user has actually confirmed it), review_after (ISO 8601 datetime to time-box the note, or null to clear it). Organization: container_id (move note), archived (boolean — works on your own personal notes and on team notes where you have the editor role; notes in shared containers are owner-only), favorited (boolean). Tags: tag_list (full replace, comma-separated), add_tags, remove_tags. tag_list takes precedence over add_tags/remove_tags. Concurrent edit safety: pass expected_lock_version (the lock_version you saw when you last read the note via notes-get / notes-list / search) whenever you want a stale-write guard. If it doesn't match the current version, the update is rejected with the current state included so you can re-read and re-apply (append_body-only calls are exempt; see expected_lock_version). Surgical edits (append_body / insert_after / insert_before / replace_find) are anchor-based and so don't *need* expected_lock_version for their body change — but if you also change title / summary / container_id alongside, those fields can still silently overwrite a newer save unless you supply expected_lock_version. Examples: insert under a heading {id: 42, append_to_section: 'Open Questions', section_body: '- Should we ship Friday?'}; replace a section {id: 42, replace_section: '## Status', section_body: 'Shipped 🎉'}; rename a heading {id: 42, rename_heading: 'TODO', new_heading: 'Done'}; tick a checklist item {id: 42, check_item: 'ship it'}; fix a typo {id: 42, replace_find: 'recieved', replace_with: 'received'}; safe full rewrite {id: 42, body: '...', expected_lock_version: 5}. Every edit is recorded as a named, revertable revision attributed to you — use notes-history to see who changed what, and notes-revert to undo a change.
Parámetros de entrada
idintegerObligatorioNote ID (required)
bodystringNew body content — full replacement. Mutually exclusive with the other body-mutation modes. Pair with expected_lock_version for concurrent-edit safety.
titlestringNew title
summarystringNew summary
add_tagsstringComma-separated tags to add to existing tags (ignored if tag_list is provided)
archivedbooleanArchive (true) or unarchive (false) the note. Works on your own personal notes and on team notes where you have the editor role; notes in shared containers can only be archived by their owner.
tag_liststringFull replacement comma-separated tag list (takes precedence over add_tags/remove_tags)
verifiedbooleanPass true to mark the note re-confirmed as still true as of now (the 'mark verified' affordance). Refreshes verified_at and clears 'stale' status. Only send after the user has confirmed the note is still accurate.
favoritedbooleanFavorite (true) or unfavorite (false) the note. Personal and team notes.
check_itemstringText of a checklist item to tick (set to '[x]'). Matched case- and whitespace-insensitively; a leading bullet/checkbox in the text is ignored. Must match exactly one item.
source_urlstringNew source URL
append_bodystringContent to append to the existing body. Mutually exclusive with the other body-mutation modes.
insert_bodystringText to insert. Must be paired with either insert_after or insert_before. Mutually exclusive with the other body-mutation modes.
new_headingstringNew heading text for rename_heading. The original level is preserved unless this carries its own leading '#' markers.
remove_tagsstringComma-separated tags to remove from existing tags (ignored if tag_list is provided)
container_idinteger | nullFolder (container) id to move the note into; pass null to move it to the inbox (remove it from its folder)
insert_afterstringAnchor snippet from the existing body — insert_body is inserted immediately after the unique occurrence. Anchor must match exactly once; include surrounding context to disambiguate.
replace_findstringSnippet to find in the existing body. Must match exactly once. Mutually exclusive with the other body-mutation modes.
replace_withstringOptional replacement for replace_find. Omit it (or pass an empty string) to delete the matched snippet.
review_afterstring | nullISO 8601 datetime after which the note should be treated as stale (time-boxing), or null to clear it.
section_bodystringThe content for replace_section / append_to_section. Required when either is given.
uncheck_itemstringText of a checklist item to untick (set to '[ ]'). Same matching rules as check_item.
insert_beforestringAnchor snippet from the existing body — insert_body is inserted immediately before the unique occurrence. Anchor must match exactly once.
rename_headingstringHeading to rename (with or without leading '#'). Pair with new_heading. Heading must match exactly one.
replace_sectionstringHeading whose section content should be replaced (with or without leading '#', e.g. '## Status' or 'Status'). Replaces everything under the heading up to the next same-or-higher-level heading, keeping the heading line. Pair with section_body. Heading must match exactly one.
append_to_sectionstringHeading to append content to (with or without leading '#'). Adds section_body at the END of that section — the safe way to 'insert under a heading'. Pair with section_body. Heading must match exactly one.
expected_lock_versionintegerOptional concurrent-edit guard. Pass the lock_version you saw when you last read the note; if it doesn't match the current version, the update is rejected and you should re-read and re-apply. Checked whenever supplied — covers title, summary, container_id, body, anything else — with one exception: when append_body is the call's ONLY edit, a stale value does not reject (a bare append lands at the end of the current body and can't lose anyone's update). That exemption also means an append is not replay-protected: if you retry an identical append-only call whose response you never saw, the text is appended twice, so re-read with notes-get instead of blind-retrying. Surgical body edits without this param still work and remain anchor-safe; supply it any time you want a stale-write guard for the other fields too.
Parámetros de salida
Sin parámetros.
Nudges dismissHJARNI_MCP_NUDGES_DISMISSAcciónDismiss a nudge served in the `me` payload, on the user's behalf, so it stops appearing on every surface (including the web app). Call this ONLY when the user has actually declined the suggestion or asked not to be reminded — never on mere silence; ignored nudges are already frequency-capped server-side. Required: key (string, the `nudge.key` from `me`). Idempotent.
HJARNI_MCP_NUDGES_DISMISSAcciónDismiss a nudge served in the `me` payload, on the user's behalf, so it stops appearing on every surface (including the web app). Call this ONLY when the user has actually declined the suggestion or asked not to be reminded — never on mere silence; ignored nudges are already frequency-capped server-side. Required: key (string, the `nudge.key` from `me`). Idempotent.
Parámetros de entrada
keystringObligatorioThe nudge key from the `me` payload's nudge block (required)
Parámetros de salida
Sin parámetros.
SearchHJARNI_MCP_SEARCHAcciónUse this when the user asks to find something saved in Hjarni, or when the answer depends on their stored knowledge or memories: preferences, workflows, routines, projects, decisions, meeting notes, research, people, how-tos, code snippets, references or journal entries. Do not use it for general knowledge questions their notes would not answer. Searches notes, containers and tags in one call. Returns results grouped by type with pagination metadata (total_count, page, per_page, total_pages). Required: query (string). Optional: types (array, default all three), search_scope ('all'|'personal'|'team:<id>'), scope ('active'|'archived'), container_id (integer, ignored when search_scope is 'all'), tags (array, AND logic), tag_ids (array, AND logic), include_nested (boolean), include_body (boolean, default false — when true each note includes its full body), include_instructions (boolean, defaults to include_body — when true each note carries inherited_instructions, the same user-written instruction chain notes-get returns, so a full-body search hit arrives with the rules that govern it and needs no follow-up notes-get; pass false to omit the chain from a body-only page), created_after / created_before / updated_after / updated_before (ISO 8601 datetime filters on note timestamps), page (integer, default 1), per_page (integer, default 25, max 100). Note results include a snippet of the matching portion. A note matches when it contains every word of the query; when none does, the notes containing most of the words come back instead, with match: 'partial' on the response and matched_terms / terms on each note, so tell the user they are partial matches.
HJARNI_MCP_SEARCHAcciónUse this when the user asks to find something saved in Hjarni, or when the answer depends on their stored knowledge or memories: preferences, workflows, routines, projects, decisions, meeting notes, research, people, how-tos, code snippets, references or journal entries. Do not use it for general knowledge questions their notes would not answer. Searches notes, containers and tags in one call. Returns results grouped by type with pagination metadata (total_count, page, per_page, total_pages). Required: query (string). Optional: types (array, default all three), search_scope ('all'|'personal'|'team:<id>'), scope ('active'|'archived'), container_id (integer, ignored when search_scope is 'all'), tags (array, AND logic), tag_ids (array, AND logic), include_nested (boolean), include_body (boolean, default false — when true each note includes its full body), include_instructions (boolean, defaults to include_body — when true each note carries inherited_instructions, the same user-written instruction chain notes-get returns, so a full-body search hit arrives with the rules that govern it and needs no follow-up notes-get; pass false to omit the chain from a body-only page), created_after / created_before / updated_after / updated_before (ISO 8601 datetime filters on note timestamps), page (integer, default 1), per_page (integer, default 25, max 100). Note results include a snippet of the matching portion. A note matches when it contains every word of the query; when none does, the notes containing most of the words come back instead, with match: 'partial' on the response and matched_terms / terms on each note, so tell the user they are partial matches.
Parámetros de entrada
pageintegerPage number for note results (default: 1)
tagsstring[]Filter note results to notes with ALL these tags (by name)
querystringObligatorioSearch query string (required)
scopestringenumSearch active or archived notes (default: active)
activearchivedtypesstring[]Which types to search. Defaults to all three: ['notes', 'containers', 'tags']
tag_idsinteger[]Filter note results to notes with ALL these tags (by ID)
per_pageintegerResults per page for notes, max 100 (default: 25)
container_idintegerFilter note results to this container (ignored when search_scope is 'all')
include_bodybooleanInclude the full note body on each note result (default: false)
search_scopestringSearch scope: 'all' (default, personal + all teams), 'personal' (personal notes only), or 'team:<id>' (specific team). Applies to note results.
created_afterstringFilter notes created on or after this ISO 8601 datetime (e.g. '2026-04-01T00:00:00Z')
updated_afterstringFilter notes updated on or after this ISO 8601 datetime
created_beforestringFilter notes created before this ISO 8601 datetime
include_nestedbooleanInclude notes from sub-containers when container_id is set (default: false)
updated_beforestringFilter notes updated before this ISO 8601 datetime
include_instructionsbooleanInclude inherited_instructions (brain, space root, ancestor and container instruction layers, outermost first) on each note result — the same chain notes-get returns. Defaults to the value of include_body, so full-body results carry their governing instructions unless you pass false.
Parámetros de salida
Sin parámetros.
Tags createHJARNI_MCP_TAGS_CREATEAcciónCreate a new tag. Check tags-list first to avoid duplicates. Required: name (string). Tag names are automatically lowercased.
HJARNI_MCP_TAGS_CREATEAcciónCreate a new tag. Check tags-list first to avoid duplicates. Required: name (string). Tag names are automatically lowercased.
Parámetros de entrada
namestringObligatorioTag name (required)
Parámetros de salida
Sin parámetros.
Tags listHJARNI_MCP_TAGS_LISTAcciónList all tags with their notes_count. Returns a JSON array, followed by a line stating the total and whether more pages remain. Optional: page (integer), per_page (integer).
HJARNI_MCP_TAGS_LISTAcciónList all tags with their notes_count. Returns a JSON array, followed by a line stating the total and whether more pages remain. Optional: page (integer), per_page (integer).
Parámetros de entrada
pageintegerPage number
per_pageintegerResults per page
Parámetros de salida
Sin parámetros.
Tags manageHJARNI_MCP_TAGS_MANAGEAcciónRename, merge, or delete a tag — the cleanup tools for the tag list (this operates on the tag itself, unlike notes-update which only edits one note's tags). Required: action ('rename'|'merge'|'delete') and the tag to act on via name (string, case-insensitive) or tag_id (integer). For 'rename' also pass new_name. For 'merge' also pass the destination via target_name or target_id: every note on the source tag is moved onto the destination and the source tag is deleted — ideal for collapsing duplicates like 'machine learning' into 'machine-learning'. If target_name names a tag that doesn't exist yet, it's created, so you can merge straight into a clean canonical name without creating it first. 'delete' removes the tag from all its notes and deletes it; deleting a name that doesn't exist succeeds as a no-op (already_absent: true), so it's safe to retry. Merge and delete are destructive and cannot be undone; check tags-list first.
HJARNI_MCP_TAGS_MANAGEAcciónRename, merge, or delete a tag — the cleanup tools for the tag list (this operates on the tag itself, unlike notes-update which only edits one note's tags). Required: action ('rename'|'merge'|'delete') and the tag to act on via name (string, case-insensitive) or tag_id (integer). For 'rename' also pass new_name. For 'merge' also pass the destination via target_name or target_id: every note on the source tag is moved onto the destination and the source tag is deleted — ideal for collapsing duplicates like 'machine learning' into 'machine-learning'. If target_name names a tag that doesn't exist yet, it's created, so you can merge straight into a clean canonical name without creating it first. 'delete' removes the tag from all its notes and deletes it; deleting a name that doesn't exist succeeds as a no-op (already_absent: true), so it's safe to retry. Merge and delete are destructive and cannot be undone; check tags-list first.
Parámetros de entrada
namestringName of the tag to act on (case-insensitive). Provide this or tag_id.
actionstringObligatorioenumAction: 'rename', 'merge', or 'delete' (required)
renamemergedeletetag_idintegerID of the tag to act on. Provide this or name.
new_namestringNew name for the tag (required for action 'rename').
target_idintegerID of the destination tag to merge into (for action 'merge'). Provide this or target_name.
target_namestringName of the destination tag to merge into (for action 'merge'). Provide this or target_id.
Parámetros de salida
Sin parámetros.
Teams createHJARNI_MCP_TEAMS_CREATEAcciónCreate a new team owned by the user (they become the owner). Required: name (string). Optional: ref — set to "assistant_suggestion" ONLY when creating in response to the me → suggestions.create_team offer, so the creation is attributed to that surface; omit it when the user asked to create a team unprompted. A user can own at most 3 free teams: at that limit this returns an error naming the teams they own and asking them to delete one — relay it rather than retrying. Returns join_url: a shareable link that lets teammates join themselves, with join_link_expires_at and join_link_uses_remaining. Offer that link FIRST — most people cannot recall a colleague's address mid-conversation — and use teams-invite when the user names a specific address.
HJARNI_MCP_TEAMS_CREATEAcciónCreate a new team owned by the user (they become the owner). Required: name (string). Optional: ref — set to "assistant_suggestion" ONLY when creating in response to the me → suggestions.create_team offer, so the creation is attributed to that surface; omit it when the user asked to create a team unprompted. A user can own at most 3 free teams: at that limit this returns an error naming the teams they own and asking them to delete one — relay it rather than retrying. Returns join_url: a shareable link that lets teammates join themselves, with join_link_expires_at and join_link_uses_remaining. Offer that link FIRST — most people cannot recall a colleague's address mid-conversation — and use teams-invite when the user names a specific address.
Parámetros de entrada
refstringenumAttribution surface. Set to 'assistant_suggestion' only when acting on me.suggestions.create_team; otherwise omit.
assistant_suggestionnamestringObligatorioTeam name (required)
Parámetros de salida
Sin parámetros.
Teams getHJARNI_MCP_TEAMS_GETAcciónGet team details including the 10 most recent notes. Required: id (integer).
HJARNI_MCP_TEAMS_GETAcciónGet team details including the 10 most recent notes. Required: id (integer).
Parámetros de entrada
idintegerObligatorioTeam ID (required)
Parámetros de salida
Sin parámetros.
Teams inviteHJARNI_MCP_TEAMS_INVITEAcciónGet a teammate into a team (team owner only), two ways. Required: team_id (integer, from teams-list). WITH email: emails an invite to that address. WITHOUT email: returns join_url, a shareable link anyone can open to join themselves, plus join_link_expires_at and join_link_uses_remaining. Prefer the LINK unless the user names an address — few people can recall a colleague's address mid-conversation, and asking is where teams stall at one member. Give the link to the USER to share; never post it anywhere yourself. Creating a link REPLACES any existing one, so to repeat a link already shared, read join_url from teams-get instead of calling this. Optional: action ('create' (default) | 'revoke').
HJARNI_MCP_TEAMS_INVITEAcciónGet a teammate into a team (team owner only), two ways. Required: team_id (integer, from teams-list). WITH email: emails an invite to that address. WITHOUT email: returns join_url, a shareable link anyone can open to join themselves, plus join_link_expires_at and join_link_uses_remaining. Prefer the LINK unless the user names an address — few people can recall a colleague's address mid-conversation, and asking is where teams stall at one member. Give the link to the USER to share; never post it anywhere yourself. Creating a link REPLACES any existing one, so to repeat a link already shared, read join_url from teams-get instead of calling this. Optional: action ('create' (default) | 'revoke').
Parámetros de entrada
emailstringAddress to email an invite to. Omit to get a shareable join link instead.
actionstringenumLink mode only (no email): 'create' (default) mints a link and invalidates any previous one; 'revoke' removes it.
createrevoketeam_idintegerObligatorioTeam ID (required; use teams-list to find it)
Parámetros de salida
Sin parámetros.
Teams listHJARNI_MCP_TEAMS_LISTAcciónList all teams the user is a member of, including members_count, notes_count, and containers_count for each team. No parameters required.
HJARNI_MCP_TEAMS_LISTAcciónList all teams the user is a member of, including members_count, notes_count, and containers_count for each team. No parameters required.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.