wm_rollback
Restore files from a previous cleanup run to their original locations after verifying SHA-256 hashes; skip corrupted, missing, or conflicting items. Dry-run by default; set execute=true to apply.
Instructions
Restore the items of a previous wm_clean run from the recycle area back to their original locations. Every item is verified against its recorded SHA-256 hashes first; items that fail the integrity check, are missing, or would overwrite an existing file are skipped with a reason. Use this to undo a cleanup you just executed, passing the run id printed by wm_clean. Dry-run by default; set execute=true to actually restore. Fails with a clear message if the run id is unknown.
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": {
"run_id": "<run_id>"
},
"name": "wm_rollback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The cleanup run id to restore, as printed by wm_clean, e.g. 'clean-20260831-153000-123456'. | |
| execute | No | When false (default) this is a dry-run preview and nothing changes; set true to actually restore the files. |