Skip to main content
Glama

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
NameRequiredDescriptionDefault
pathYes
new_textYes
old_textYes
workspaceNoBrain 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_allNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources