huaweicloud_sandbox_upload_file
Upload a local file into the sandbox workspace. Base64-encodes the file, writes it in small chunks through the terminal session (the exec channel is fragile for large single commands), then decodes and verifies the md5 checksum. Use this instead of embedding large file content directly in a command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | No | Login username (default: root) | |
| local_path | Yes | Absolute path to the local file to upload. | |
| timeout_ms | No | Execution timeout in milliseconds (default: 60000) | |
| remote_path | Yes | Target path in the sandbox, e.g. /workspace/<repo>/index.html. | |
| workspace_id | No | Workspace ID from huaweicloud_sandbox_connect return value. Required - must be passed explicitly when HW_WORKSPACE_ID is not set. |