restore_memory
Undo a trash_memory call by restoring a curated memory file from its one-time token, returning it to its original path so references by address work again.
Instructions
MUTATING: undo a trash_memory call by restoring one curated memory file from its restore token. Writes to local disk and appends to the change timeline. The file returns to its original path with its address and history intact, so references by address resume working. A token is single-use and only valid for the tree it was issued against, so a spent or foreign token fails without changing anything. Restoring is only possible while the token is known: there is no way to browse trash from MCP. Parameters: restore_token is the exact token returned by the trash_memory call being undone; 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 restored address, path, and revision id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| restore_token | Yes | Restore token returned by a prior trash_memory call, identifying the file to restore. |