save_image
Export a Docker image to a tar archive, returned as bytes. Use for small images due to in-band size limits.
Instructions
Save an image as a tar archive, returned in band.
For anything but a small image prefer save_image_to_file, which streams to a host path; the
in-band bytes here are capped (default 32 MiB) because MCP base64-encodes them into the agent's context.
args: name - Image name or id named - Whether to keep the image name when saving max_bytes - Abort with ValueError if the tarball exceeds this many bytes (defaults to 32 MiB) returns: bytes - The tarball contents
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| named | No | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |