container_archive_get_to_file
Extract a file or directory from a container as a tar archive directly to a host file, streaming to disk to avoid large base64 payloads.
Instructions
Retrieve a file or directory from a container as a tar archive written to a file on the server host.
File-writing variant of container_archive_get - prefer it for anything large, since in-band
bytes are base64-encoded by MCP. For the whole filesystem use container_export. Streams
straight to disk (no in-band byte cap). The file is written by the server's user; ~ is
expanded and an existing file is refused unless overwrite=True.
Args: path: Path inside the container dest_path: Destination path on the server host for the tarball overwrite: Replace dest_path if it already exists
Returns: dict: {"path": , "bytes_written": int, "stat": dict}
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": {
"id_or_name": "<id_or_name>",
"path": "<path>",
"dest_path": "<dest_path>"
},
"name": "container_archive_get_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dest_path | Yes | ||
| overwrite | No | ||
| id_or_name | Yes |