container_archive_get_to_file
Export a file or directory from a Docker container as a tar archive directly to the server host's filesystem, avoiding in-band byte limits.
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: id_or_name - The container id or name path - Path inside the container dest_path - Destination path on the server host for the tarball overwrite - Replace dest_path if it already exists (default False) returns: dict - {"path": , "bytes_written": int, "stat": dict}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dest_path | Yes | ||
| overwrite | No | ||
| id_or_name | Yes |