archive_file
Move a file into archive/ while preserving its relative path to retire old or superseded notes recoverably instead of deleting them.
Instructions
Move a file into the top-level archive/ folder, preserving its relative path (notes/foo.md becomes archive/notes/foo.md).
Archiving is recoverable and is the default way to retire old or superseded files instead of deleting them. Use restore_file to move an archived file back.
Files in archive/ are excluded from search_files, while list_directory still shows archive/ so archived files remain inspectable.
Refuses to overwrite if the destination under archive/ already exists, and rejects directories, missing files, archive/ itself, or files already 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": "archive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File to archive, relative to the library root (for example "notes/2026-10-28.md"). |