spine_restore_backup
Restore a Spine JSON backup file from the backups/ directory to a specified target file. Confirmation required; dry run by default; current target is backed up before real restore.
Instructions
将 backups/ 中的指定备份恢复到目标 JSON 文件。高风险操作,必须 confirm:true;默认 dryRun:true;真实恢复前会先备份当前目标文件。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backupPath | Yes | 工作区 backups/ 目录内的备份文件路径,例如 backups/skeleton-4.1.xxx.json。 | |
| targetFilePath | Yes | 工作区根目录内的 Spine JSON 文件路径。 | |
| dryRun | No | ||
| expectedHash | No | 可选目标文件当前 hash,用于防止覆盖意外变化。 | |
| confirm | Yes | 必须显式传 true 才允许执行 dryRun 或真实恢复。 |