restore_archive
Restore a single file or folder from a P5 archive index to an alternate directory; preview the selection and confirm with a planId before submitting the restore job.
Instructions
Restores ONE entry (file, or folder with everything below) of a P5 ARCHIVE index to an alternate directory: RestoreSelection create , addentry , submit; returns the job id. Without confirm only the preview (read-back of the selection: entries and bytes from P5, free space, conflicts, policy, planId; the probe selection is destroyed, nothing submitted). confirm:true must pass that planId.
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": {
"path": "<path>"
},
"name": "restore_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Absolute directory in the P5 container; the original path is placed below it | |
| path | Yes | Absolute path of the entry as archived | |
| index | No | Archive index (default Default-Archive) | |
| planId | No | planId printed by the preview; required with confirm:true. A changed destination or new conflicts make the call refuse and show the new plan | |
| confirm | No | Must be true to actually run (with planId) | |
| forceSync | No | Allow to:'original' inside a configured syncRoot | |
| onConflict | No | What to do when a destination file exists: refuse (default), rename (<name>.restored-YYYYMMDD; not for P5 volume restores) or overwrite |