Patch Note
vault_patchReplace a unique string in a note with another string for surgical edits such as updating links, fixing sections, or changing status fields; updates the modified timestamp.
Instructions
Replace a unique string in a note with another string. The old_str must appear exactly once in the file content (not frontmatter). Use for surgical edits: updating links, fixing sections, replacing status fields. Updates modified timestamp.
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>",
"old_str": "<old_str>",
"new_str": "<new_str>"
},
"name": "vault_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path to the note | |
| new_str | Yes | Replacement string | |
| old_str | Yes | Exact string to find and replace (must appear exactly once in content) | |
| agent_name | No | Agent name for attribution |