pull-file
Pull a single file from a remote host or pack a backup folder into an archive, verifying its SHA-256 checksum to confirm integrity.
Instructions
dbabrain common.cli pull-file: A backup folder packed, or one file pulled or pushed, with checksums.
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
host: The host: {host, port, username, password|key_file}.
folder: pack-backup: the folder.
files: pack-backup: or named files.
archive_path: pack-backup: the archive.
format: pack-backup: tar | tar.gz.
remote_path: pull/push: the file there.
local_path: pull/push: the file here.
sha256: The checksum it must match.
timeout_seconds: How long to wait.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pull-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |