move_memory
Move or rename a memory file while preserving its stable docmancer:// address. Requires the current content hash to ensure a safe update.
Instructions
MUTATING and DESTRUCTIVE at the old path: move or rename one curated memory file. Writes to local disk and appends to the change timeline. The file's stable docmancer://memory address survives the move, so existing references by address keep working, but the old relative path stops resolving and anything referring to it by path breaks. Guarded by expected_hash, so a stale hash fails without changing anything. The body is untouched: use edit_memory to change content, or duplicate_memory to copy rather than move. Parameters: address identifies the file to move; new_relative_path is its destination path in the tree, including the .md suffix, and renaming is just a move within the same directory; expected_hash is the file's current content_hash from read_memory; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the unchanged address, the new path, and the new revision id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Stable docmancer://memory/<id> address, relative path, or exact title of the memory file. | |
| project_path | No | Project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. | |
| expected_hash | Yes | The file's current content_hash from a prior read_memory call. A stale value fails safely instead of overwriting a newer revision. | |
| new_relative_path | Yes | Relative path, including the .md suffix, for the memory file inside its selected memory tree. |