patch_note_tool
Edit a note section or block reference by replacing, inserting before/after, or appending content. Preview changes with a dry run before writing.
Instructions
Edit a section or block reference inside a note. mode: 'replace' (default) | 'insert_before' | 'insert_after' | 'append'. target_type: 'heading' (default) | 'block_ref' (use section='^block-id'). dry_run=True previews data {preview, diff} without writing — check it, then call again with dry_run=False.
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": {
"path": "<path>",
"section": "<section>",
"new_content": "<new_content>"
},
"name": "patch_note_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | replace | |
| path | Yes | ||
| vault | No | ||
| dry_run | No | ||
| section | Yes | ||
| new_content | Yes | ||
| target_type | No | heading | |
| expected_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||