Cleanup Snapshots
cleanup_snapshotsDeletes older CSV and PNG snapshot files from the export directory while preserving a specified number of the most recent ones.
Instructions
Legacy explicit cleanup: delete older CSV/PNG files from the configured export directory. Disable with WIZTREE_MCP_DISABLE_CLEANUP=1.
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": "cleanup_snapshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keepLatest | No | Number of most recent snapshots (by base name) to keep. |