patch_section
Edit one markdown section with replace, append, prepend, or own-text updates, using version checks and all-or-nothing writes to prevent conflicting changes.
Instructions
Edit one section. op: 'replace' (content = what read returned for the section, subsections included, headings relative), 'append' (after the subtree; may add subsections), 'prepend' (before the own text; no headings) or 'replace_own_text' (only the text before the first subsection; subsections kept; no headings). All but append need if_version (the section version read returned). On a page whose only section is the root, append and replace on the root can add headings. Optional summary updates the note's index line (on /index: the domain description). All or nothing, with the checks inside.
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": {
"op": "<op>",
"content": "<content>"
},
"name": "patch_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| path | No | ||
| content | Yes | ||
| heading | No | ||
| summary | No | ||
| task_id | No | ||
| if_version | No | ||
| section_id | No |