patch_file
Destructive
Change one part of a note without rewriting it: replaces old_text with new_text. old_text must be copied exactly from read_file (spaces and line breaks included) and appear once in the note; add a few surrounding words if it appears more than once, or pass replace_all: true to change every occurrence. An empty new_text deletes old_text. Only changes a note that exists. The brain is found from the path: omit workspace unless the tool asks for it.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| new_text | Yes | ||
| old_text | Yes | ||
| workspace | No | Brain to act on: its id, «mio» (yours), or the owner's name/email as shown by search. Usually OMIT it: a path that already lives in one brain is found there, for reads and writes alike. Pass it only when the tool tells you to (a NEW branch, or one that exists in several brains) — with the brain the user named; when they were not explicit ASK THEM. A brain where the branch does not exist is refused even if you name it. | |
| replace_all | No |