Update a note
update_noteChanges a note's markdown. mode "append" adds text on a new line at the end; mode "replace" makes the note the given markdown. Edits merge live with people typing in the note: a replace built from an earlier read keeps the edits made since that read, and writes nothing when they touch the same lines as the replace. Needs edit access; encrypted notes are refused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"markdown": "<markdown>",
"mode": "<mode>"
},
"name": "update_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id at the end of the link, e.g. "k3v9qa" in https://static.md/md/k3v9qa | |
| mode | Yes | "append" adds to the end; "replace" rewrites the whole note, keeping edits made after base_version | |
| markdown | Yes | Markdown to append, or the complete new note for "replace" | |
| base_version | No | For "replace": the version of the note the markdown was built from, as read_note or this tool's last answer gave it. Edits made after it are kept; if they touch the same lines, nothing is written. Default: the version this connection last read. |