db_restore
Restore a database backup over the live tracker, overwriting current data. Creates a safety backup first and requires confirmation before proceeding.
Instructions
Restore a backup over the live tracker. DESTRUCTIVE and irreversible: it takes a safety backup first and refuses without confirm: true. Restoring the wrong file over a working tracker is the mistake with no undo.
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": {
"name": "<name>",
"confirm": "<confirm>"
},
"name": "db_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory identifying the project and the tree. Defaults to this session's working directory, which in a git worktree is that worktree. | |
| name | Yes | The backup filename, from db_backups. | |
| confirm | Yes | Must be true. This overwrites everything currently tracked. |