reset_state
Reset persisted app data through the simulator menu, taking an optional snapshot first and requiring confirmation; restart the app afterward to verify a clean launch.
Instructions
Reset persisted app data through the simulator menu, with a screenshot and optional APPS snapshot first. Requires confirm: true. Restart the app afterwards to observe a clean launch.
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": {
"confirm": "<confirm>"
},
"name": "reset_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | app clears this app's data; all_apps deletes every app; simulator resets the simulator | |
| verify | No | Read state through the debug channel after reset (default: true) | |
| confirm | Yes | Must be true; this is destructive | |
| wait_ms | No | Settle time after invoking the menu (default: 1200) | |
| snapshot | No | Snapshot APP files before resetting (default: true for app scope) | |
| stop_app | No | Kill the running app first so cached state cannot rewrite storage (default: true) | |
| app_names | No | Uppercase PRG basenames to snapshot; defaults to the last run PRG | |
| snapshot_dir | No | Directory for the snapshot |