db_table_restore
Restore an OpenSIPS database table from a JSON backup. Preview changes with dry-run mode; pass confirm=True to apply. Optionally truncate existing rows before inserting to fully replace current state.
Instructions
Restore a table from a JSON backup produced by db_table_backup.
By default this is a dry-run. Pass confirm=True to actually
write. Pass truncate_first=True to delete every existing row in
the table BEFORE inserting the backup — needed when the backup is
intended to fully replace current state, but dangerous if you
misjudge the scope.
Parameters
backup_path:
Path to the JSON file produced by db_table_backup.
confirm:
Must be True to write. Default False returns the plan.
truncate_first:
If True, delete current rows before inserting from the
backup. Use when restoring a complete table snapshot.
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": {
"backup_path": "<backup_path>"
},
"name": "db_table_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup_path | Yes | ||
| confirm | No | ||
| truncate_first | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||