Restore a backup
restore_backupRestores an Altium library file from a specific backup or the most recent one. Safely snapshots the current file before restoring, ensuring reversibility and atomic writes.
Instructions
Restore an Altium library file from a backup. If no specific backup is specified, restores from the most recent backup. The current file is snapshotted as a new backup first (reported as pre_restore_backup), so a wrong pick is itself reversible, and the restore is written atomically.
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": {
"filepath": "<filepath>"
},
"name": "restore_backup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to the library file to restore | |
| backup_path | No | Optional: specific backup file to restore from. If not provided, uses most recent backup. |