edit_memory
Replace content in Serena's memory files using literal strings or regex patterns to update stored information efficiently.
Instructions
Replaces content matching a regular expression in a memory.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_file_name | Yes | The name of the memory. | |
| needle | Yes | The string or regex pattern to search for. If `mode` is "literal", this string will be matched exactly. If `mode` is "regex", this string will be treated as a regular expression (syntax of Python's `re` module, with flags DOTALL and MULTILINE enabled). | |
| repl | Yes | The replacement string (verbatim). | |
| mode | Yes | Either "literal" or "regex", specifying how the `needle` parameter is to be interpreted. |