cleanup_old_checkpoints
Remove old model checkpoints from a directory, retaining only the most recent specified number. Use dry-run to preview deletions.
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": {
"checkpoints_path": "<checkpoints_path>"
},
"name": "cleanup_old_checkpoints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | ||
| dry_run | No | ||
| checkpoints_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||