perform_auto_cleanup
Automatically remove outdated output files based on age and retention policies, offer a dry-run preview, and always preserve a configurable number of recent files.
Instructions
Perform automatic cleanup of old output files based on age and retention policies. Supports dry-run preview and preserves a configurable number of recent files.
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": "perform_auto_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, preview cleanup without deleting files. Default: true. | |
| max_age_hours | No | Files older than this (in hours) will be deleted. Default: 24 hours. | |
| preserve_recent | No | Number of most recent files to preserve regardless of age. Default: 10. |