edit_section
Edit a specific section of a note by heading with replace, prepend, or append modes, preserving all other content and returning the edited section for confirmation.
Instructions
Edit one section of an existing note, located by heading (any level, fuzzy filename match). mode = replace | prepend | append. All content outside the targeted section is preserved. Returns the edited section for confirmation.
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": {
"file": "<file>",
"heading": "<heading>",
"content": "<content>"
},
"name": "edit_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Filename or vault-relative path. | |
| mode | No | How to apply content. | replace |
| content | Yes | The content to write into the section. | |
| heading | Yes | The heading whose section to edit. | |
| auto_wikilink | No | Auto-insert [[wikilinks]] for discovered matches. |