Prune Old Snapshots
story_prune_snapshotsPrune old full-copy snapshots to reduce disk bloat: preview deletions first, then keep the newest N while safeguarding recent backups.
Instructions
Dọn dẹp các snapshot cũ trong .story/snapshots/ (mỗi snapshot là full-copy nên dễ phình đĩa). Giữ lại N snapshot mới nhất; dry-run preview trước khi confirm. Snapshot mới nhất và backup pre-rollback gần đây luôn an toàn vị trí — chỉ bị xóa khi vượt ngưỡng được chọn.
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": "story_prune_snapshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | false = chỉ xem preview, true = thực hiện xóa | |
| keepLast | No | Số snapshot MỚI NHẤT luôn giữ lại (kể cả khi vượt olderThanDays) | |
| olderThanDays | No | Chỉ xóa snapshot cũ hơn số ngày này (bỏ trống = xóa mọi snapshot ngoài keepLast) |