download¶
Download a file from a container image to local filesystem.
TL;DR¶
Use when: Extracting build artifacts, logs, binaries
Returns: Success status, file size, path
Cost: No VM needed
Parameters¶
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
Yes |
- |
Image UUID or |
|
string |
Yes |
- |
Path inside container |
|
string |
Yes |
- |
Absolute path on MCP host filesystem ( |
|
boolean |
No |
|
Make file executable |
Response¶
{
"success": true,
"size": 12345,
"size_human": "12.1 KB",
"destination": "/local/path/binary",
"source": {
"image": "img-build-result",
"path": "/app/dist/binary"
},
"executable": true
}
Examples¶
Download Build Artifact¶
{"tool": "download", "args": {
"image": "img-build-result",
"path": "/app/dist/binary",
"destination": "~/downloads/binary",
"executable": true
}}
Download Log File¶
{"tool": "download", "args": {
"image": "img-uuid",
"path": "/var/log/app.log",
"destination": "~/downloads/debug.log"
}}
Note:
destinationmust be an absolute path on the MCP server’s host filesystem (not inside the container). Use~for home directory. Parent directories are created automatically.