restore_file
Restore an archived file from the archive/ folder to its original path and make it searchable again. Refuses to overwrite existing files, so nothing is lost.
Instructions
Restore an archived file from the top-level archive/ folder back to its original path (for example archive/notes/foo.md becomes notes/foo.md).
The search index is updated immediately so the restored file is searchable again.
Refuses to overwrite if a file already exists at the original path, and rejects directories, missing files, or paths not inside archive/.
Paths are relative to the library root (MEMDRIVE_ROOT). Absolute paths are accepted only when they stay inside the root. The root is a hard sandbox: "../" escapes and symlinks pointing outside are rejected.
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>"
},
"name": "restore_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Archived file to restore, relative to the library root — must start with "archive/" (for example "archive/notes/2026-10-28.md"). |