catalog_restore
Restores a single file from a packed backup set to a directory on the P5 host, fetching the tar from tape when needed and requiring plan confirmation before writing.
Instructions
Restores ONE file from a packed set into a directory on the P5 host: extracted from the tar when it is on disk; otherwise the tar is restored from tape (via restore, into a scratch dir under packRoot) and the member extracted, then the scratch tar is deleted. Refuses with a fetch list when the needed tape is not in the library. Without confirm only the plan (destination, source, bytes, free space, existing destination files with size+mtime, conflict policy, planId); confirm:true needs 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>",
"set": "<set>"
},
"name": "catalog_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Default: restore folder <restoreRoot>/<YYYYMMDD-HHMMSS>/<original path>; 'original' = original location; else a directory below which the original path is placed | |
| set | Yes | ||
| path | Yes | File path inside the set (relative to the set's source root) | |
| 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; without it only the plan/commands are returned | |
| 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 |