Restore backed-up project bytes
project_restore_fileRestore a project file from its backup store, including binary GDF/SCF bytes. Preview by default; confirm with SHA-256 checks to apply.
Instructions
Restore a file from this project backup store, including binary GDF/SCF bytes. Preview by default. Requires backup SHA-256; an existing destination also requires its current SHA-256 and is backed up before restoration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the project/workspace. Absolute paths must remain inside that scope. | |
| backup | Yes | Backup path returned by an earlier mutation, inside this scope .mcp-backups directory. | |
| confirm | No | Apply the described file change when true; otherwise return a preview. This is a tool argument, not a request for another user approval. | |
| project | No | Existing .acf project path or unambiguous project name. File paths are scoped to its directory. | |
| workspace | No | Workspace directory for resolving project names, or the scope when no project is supplied. | |
| backupSha256 | Yes | SHA-256 of the backup, equal to previousSha256 from the original change. | |
| expectedSha256 | No | Current destination SHA-256 if it still exists. |