apply_change
Apply a single local text replacement only after verifying the current version matches, preventing conflicting or stale edits to vault documents.
Instructions
Apply one local text replacement after checking the current version.
replaces lists existing documents absorbed into this one by the edit
(for example a concept card folded into a topic article). They are deleted
only after the patch is written, and the patched body must still hold at
least 70% of their combined length.
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": {
"scope": "<scope>",
"path": "<path>",
"expected_text": "<expected_text>",
"replacement": "<replacement>"
},
"name": "apply_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| scope | Yes | ||
| replaces | No | ||
| replacement | Yes | ||
| expected_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||