Docs

Built-in tools›Long-term memory

Edit project memory

edit_project_memory
Group
Long-term memory
Turned on by
The memory switches on the Advanced tools page of Conversation settings.
Approval
Not reviewed: runs without asking, within the limits on this page.
Profile key
tool.edit_project_memory.description

Changes one passage of an existing project memory document and rewrites its line in the memory index.

The model uses it to correct or extend what it saved in a workspace's .mework/memory/. New documents are made with create_project_memory. Editing project memory never asks. See Memory and instructions.

Limits

  • After the change, the document can be at most 256 KiB and MEMORY.md at most 64 KiB.

Good to know

  • You can edit the documents in any editor too. The model sees your change the next time it reads the document.
  • In a conversation with more than one workspace, the tool takes an optional workspace number saying whose memory to edit (default 1). With one workspace it has no such parameter.

Parameters

ParameterTypeDetails
description required
Description
stringOne-sentence index entry describing the document after the change.
name required
Name
stringExisting document name; the .md suffix is optional.
new_text required
New text
stringReplacement text; an empty string deletes the passage.
old_text required
Original text
stringPassage to replace; must occur exactly once in the document.

Edit this page on GitHub