tool_manage_saves
List, clear, or remove stale Ren'Py saves to fix return label errors after script refactors.
Instructions
List, clear, or clear-stale Ren'Py save files.
Ren'Py stores saves under game/saves/. Stale saves (_reload-, _tracesave-) can retain old call stacks that cause 'Could not find return label' errors after script refactors.
Args: project_path: Absolute path to the Ren'Py project root directory. action: One of: - "list": list all save files with size + mtime - "clear": delete ALL save files (game restarts from 'start') - "clear_stale": delete only _reload-* and _tracesave-* files
Returns: dict with {ok, action, saves|deleted, message}.
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": {
"project_path": "<project_path>"
},
"name": "tool_manage_saves"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | list | |
| project_path | Yes |