plan_cleanup
Scan a MemDrive library and generate a read-only cleanup plan that proposes archiving empty files, exact duplicates, and orphan attachments without modifying or deleting anything.
Instructions
Generate a read-only cleanup plan for the library (two-step confirmation). Scans the library and proposes file actions — archiving empty files, duplicate files and orphan attachments — but changes nothing.
Returns a plan ID and a human-readable preview. The plan is also saved as JSON in the per-library cache dir (plan-.json) for the apply_plan tool or the memdrive-mcp apply <plan-id> command.
Empty files, duplicates and orphan attachments are all proposed for archiving (recoverable); nothing is ever permanently deleted. Broken image references are listed as notes, not actions. Similar content is never proposed — only exact SHA-256 duplicates.
This tool never modifies any file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "plan_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||