get_container_archive
Retrieve a file or directory from a container as a tar archive, with a configurable byte limit to prevent oversized transfers.
Instructions
Retrieve a file or directory from a container as a tar archive, returned in band.
For large paths prefer get_container_archive_to_file, which streams to a host path; the in-band
bytes here are capped (default 32 MiB) because MCP base64-encodes them.
args: id_or_name - The container id or name path - Path inside the container max_bytes - Abort with ValueError if the archive exceeds this many bytes (defaults to 32 MiB) returns: dict - Mapping with archive (bytes) and stat (dict) keys
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_bytes | No | ||
| id_or_name | Yes |