upload_file
Transfer files from your host system to the /app directory of the container for code execution. Specify source file path and destination relative path to make files accessible within the container.
Instructions
Upload a file from the host filesystem to the container's /app directory.
Makes a file from the host available inside the container for code execution.
The uploaded file can then be accessed in execute_ipython_cell using the
path '/app/{relpath}'.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
local_path | Yes | Absolute path to the source file on host filesystem that will be uploaded | |
relpath | Yes | Destination path relative to container's /app directory (e.g., 'data/input.csv' saves to /app/data/input.csv) |
Input Schema (JSON Schema)
{
"properties": {
"local_path": {
"description": "Absolute path to the source file on host filesystem that will be uploaded",
"title": "Local Path",
"type": "string"
},
"relpath": {
"description": "Destination path relative to container's /app directory (e.g., 'data/input.csv' saves to /app/data/input.csv)",
"title": "Relpath",
"type": "string"
}
},
"required": [
"relpath",
"local_path"
],
"title": "upload_fileArguments",
"type": "object"
}