changedInput schema / properties / changes / description
Previous value: -"\"edit\" mode: array of search/replace blocks applied sequentially. Each block has old_string (exact match) and new_string (replacement). Operates on stored content (HTML for text notes)."New value: +"\"edit\" mode: search/replace blocks applied in order to the STORED content — HTML for text notes, so read it with get_note format=\"html\" first (markdown from get_note will not match). Each old_string must match exactly once; include surrounding context to make it unique. An empty old_string inserts new_string at the start."
changedInput schema / properties / changes / items / properties / new_string / description
Previous value: -"The replacement string"New value: +"Replacement text (\"\" deletes old_string)"
changedInput schema / properties / changes / items / properties / old_string / description
Previous value: -"The exact string to find in the existing content"New value: +"Exact substring of the stored content; must occur exactly once (\"\" = insert at start)"
changedInput schema / properties / content / description
Previous value: -"New content. Required for \"replace\" and \"append\" modes. For text notes: provide HTML (default) or markdown (if format is \"markdown\"). For code blocks in HTML, use <pre><code class=\"language-X\">...</code></pre> structure. Internal links to other Trilium notes: write <a href=\"note:TARGET_NOTE_ID\">Link text</a> in HTML, or [Link text](note:TARGET_NOTE_ID) in markdown — the server turns it into a proper Trilium reference link (class=\"reference-link\" + href/data-note-path built from the target's tree path) and rejects the write if the target does not exist. Leave the link text empty to use the target's title. Do NOT write [text](#root/...) markdown links or hand-built anchors without class=\"reference-link\" and data-note-path — Trilium stores those as inert hash anchors, not note links."New value: +"New content for \"replace\"/\"append\". Same conventions as create_note content (HTML or markdown, note:<id> links); for binary (file/image) notes \"replace\" takes a path, URL, data URL or base64."
changedInput schema / properties / files / description
Previous value: -"Optional array of files to attach and embed as download links in the note. The data field accepts a local file path, an http(s) URL, a data URL, raw base64 (binary types), or raw text (text types) — auto-detected; mime and filename are optional. Reference files in your content using placeholder URLs: in markdown use [label](file:0), [label](file:1), etc. In HTML use <a href=\"file:0\">label</a> (double quotes required). The number is the zero-based index into THIS array — placeholders do NOT reference attachments uploaded in earlier calls. Files and placeholders must be provided together in the same call. Files without a corresponding placeholder are appended at the end of the content as download links. To reference an attachment you uploaded separately, use its real URL: <a href=\"api/attachments/{attachmentId}/download\">label</a>."New value: +"Files to upload as attachments of this note and link as downloads. Reference entry N with <a href=\"file:N\">label</a> (HTML, double quotes) or [label](file:N) (markdown); same indexing rules as images. Unreferenced files are appended as download links. To link an existing attachment use <a href=\"api/attachments/{attachmentId}/download\">label</a>."
changedInput schema / properties / files / items / properties / data / description
Previous value: -"The file. Pass any of: a local file path (\"/abs/path\" or \"~/path\"), an http(s) URL, a data URL (data:image/png;base64,...), or inline base64 (binary types) / raw text (text types) — the source is auto-detected. Use a file:// prefix to force path interpretation."New value: +"The file, in any of the forms images[].data accepts."
changedInput schema / properties / files / items / properties / filename / description
Previous value: -"Optional filename for the file attachment (e.g., \"report.pdf\"). Defaults to the path/URL basename, else file-N."New value: +"Attachment filename (e.g. \"report.pdf\"). Defaults to the path/URL basename, else file-N."
changedInput schema / properties / files / items / properties / mime / description
Previous value: -"Optional MIME type (e.g., \"application/pdf\", \"text/csv\") — auto-detected from the source; set only to override."New value: +"MIME type override (e.g. \"application/pdf\"); normally auto-detected."
addedInput schema / properties / files / maxItems
Added value: +50
changedInput schema / properties / format / description
Previous value: -"Content format for text notes. Use \"markdown\" to auto-convert markdown to HTML. Defaults to \"html\". Only applies in \"replace\"/\"append\" modes."New value: +"\"markdown\" converts content to HTML before saving (\"replace\"/\"append\" only). Applies to text notes only; ignored for other types."
changedInput schema / properties / images / description
Previous value: -"Optional array of images to embed in the note. The data field accepts a local file path, an http(s) URL, a data URL, or raw base64 — auto-detected; mime and filename are optional. Reference images in your content using placeholder URLs: in markdown use , , etc. In HTML use <img src=\"image:0\"> (double quotes required). The number is the zero-based index into THIS array — placeholders do NOT reference attachments uploaded in earlier calls. Images and placeholders must be provided together in the same call. Images without a corresponding placeholder are appended at the end of the content. To reference an attachment you uploaded separately, use its real URL: <img src=\"api/attachments/{attachmentId}/image/{filename}\">."New value: +"Images to upload as attachments of this note and embed. Reference entry N from the content with <img src=\"image:N\"> (HTML, double quotes) or  (markdown); N indexes THIS array only, not attachments from earlier calls. Unreferenced images are appended at the end; an unresolved placeholder fails the call. To embed an existing attachment use its real URL: <img src=\"api/attachments/{attachmentId}/image/{filename}\">. Images and files together may total at most the server's per-input content limit; add more with create_attachment."
changedInput schema / properties / images / items / properties / data / description
Previous value: -"The image. Pass any of: a local file path (\"/abs/path\" or \"~/path\"), an http(s) URL, a data URL (data:image/png;base64,...), or inline base64 (binary types) / raw text (text types) — the source is auto-detected. Use a file:// prefix to force path interpretation."New value: +"The image. Pass any of: an http(s) URL, a data URL (data:image/png;base64,...), or inline base64 (binary types) / raw text (text types) — the source is auto-detected. A file path (\"/abs/path\", \"~/path\", or file://...) refers to the MCP SERVER's filesystem and only works when the server permits local file reads."
changedInput schema / properties / images / items / properties / filename / description
Previous value: -"Optional filename for the image attachment (e.g., \"screenshot.png\"). Defaults to the path/URL basename, else image-N."New value: +"Attachment filename (e.g. \"chart.png\"). Defaults to the path/URL basename, else image-N."
changedInput schema / properties / images / items / properties / mime / description
Previous value: -"Optional MIME type (e.g., \"image/png\") — auto-detected from the source; set only to override."New value: +"MIME type override (e.g. \"image/png\"); normally auto-detected."
addedInput schema / properties / images / maxItems
Added value: +50
changedInput schema / properties / mode / description
Previous value: -"Write mode. \"metadata\" — update title/type/mime only (no content change). \"replace\" — overwrite the entire content with the provided content. \"append\" — fetch existing content and concatenate the provided content at the end. \"edit\" — apply search/replace blocks (changes) or a unified diff (patch) to the existing content."New value: +"Write mode. \"metadata\" — update title/type/mime/dates only (no content change). \"replace\" — overwrite the entire content with the provided content. \"append\" — add the provided content at the end of the existing content (text/code notes). \"edit\" — apply search/replace blocks (changes) or a unified diff (patch) to the existing content."
addedInput schema / properties / noteId / maxLength
Added value: +128
addedInput schema / properties / noteId / pattern
Added value: +"^[A-Za-z0-9_]+$"
changedInput schema / properties / patch / description
Previous value: -"\"edit\" mode: unified diff to apply to existing content."New value: +"\"edit\" mode: a single-file unified diff (with @@ hunks) against the stored content. Trilium HTML is often one long line, so prefer \"changes\"."