propose_edit
Replace exact text in a page and stage the edit as a proposal for review.
Instructions
Propose an edit to an existing page via exact string replacement. 'before' must appear exactly once in the current file (or in the pending proposal if one exists); add surrounding context if it doesn't. The edit is staged at proposed/.
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>",
"before": "<before>",
"after": "<after>"
},
"name": "propose_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Page path relative to vault root. | |
| after | Yes | Replacement text. Empty string deletes the match. | |
| before | Yes | Exact text to replace. Must be unique in the file. |