container_archive_get
Retrieve a file or directory from a container as a tar archive, with a byte cap to avoid oversized in-band transfers.
Instructions
Retrieve a file or directory from a container as a tar archive, returned in band.
In-band bytes are capped (default 32 MiB) because MCP base64-encodes them;
container_archive_get_to_file streams to a host path instead.
Args: path: Path inside the container max_bytes: Abort with ToolInputError if the archive exceeds this many bytes (defaults to 32 MiB)
Returns: dict: Mapping with archive (bytes) and stat (dict) keys
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>"
},
"name": "container_archive_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_bytes | No | ||
| id_or_name | Yes |