download_file
Retrieve files from the container's /app directory to the host filesystem. Specify the source path in the container and the destination path on the host for automatic file transfer.
Instructions
Download a file from the container's /app directory to the host filesystem.
Retrieves files created or modified during code execution from the container. The file at '/app/{relpath}' in the container will be saved to the specified location on the host.
Parent directories are created automatically if they don't exist.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
local_path | Yes | Absolute path on host filesystem where the file will be saved | |
relpath | Yes | Source path relative to container's /app directory (e.g., 'output/results.csv' reads from /app/output/results.csv) |
Input Schema (JSON Schema)
{
"properties": {
"local_path": {
"description": "Absolute path on host filesystem where the file will be saved",
"title": "Local Path",
"type": "string"
},
"relpath": {
"description": "Source path relative to container's /app directory (e.g., 'output/results.csv' reads from /app/output/results.csv)",
"title": "Relpath",
"type": "string"
}
},
"required": [
"relpath",
"local_path"
],
"title": "download_fileArguments",
"type": "object"
}