Replace text in memory file
memory.str_replaceReplace one exact occurrence of old text with new text in a memory file, with the resulting content screened before writing to keep sensitive values out.
Instructions
Replace a unique occurrence of old_str with new_str. The resulting file content is screened before the write.
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": "memory.str_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path under /memories. | |
| new_str | Yes | Replacement text. | |
| old_str | Yes | Exact text to replace; must occur once. |