colab_drive_upload
Upload a local file to a specified Google Drive folder to stage data for Colab GPU runtimes. Use with colab_execute's drive_fetch parameter.
Instructions
Upload a local file to Google Drive.
Use this to stage input data before running colab_execute with the drive_fetch parameter. The file is uploaded to the specified folder under MyDrive.
After upload:
Pass the drive path in colab_execute's drive_fetch parameter to make the file available on the Colab runtime.
Example: colab_execute(code="...", drive_fetch='{"colab_data/train.csv": "/content/train.csv"}')
Common issues:
First use requires Google Drive OAuth authorization (browser popup).
Nested folders (e.g. 'data/train') are created automatically.
Args: local_path: Path to the local file to upload. drive_folder: Target folder path on Google Drive (relative to MyDrive). Nested paths like 'data/train' are supported. Folders are created automatically if they don't exist. Default: "colab_data".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_path | Yes | ||
| drive_folder | No | colab_data |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |