upload_drive_file
Upload a file to a full path in Huly Drive, creating any needed parent folders automatically. Choose from local file, remote URL, or base64 data.
Instructions
Upload a file into Drive at a full path including filename. Provide exactly one source: filePath, fileUrl, or base64 data. By default createParents=true creates missing parent folders and reports them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drive | Yes | a string that will be trimmed | |
| path | Yes | a string that will be trimmed | |
| contentType | Yes | a string that will be trimmed | |
| createParents | No | Create missing parent folders automatically. Defaults to true. | |
| filePath | No | Local filesystem path to upload. Preferred for large files. | |
| fileUrl | No | Remote URL to fetch server-side. | |
| data | No | Base64-encoded file content. Use only for small files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The successful tool result. The same value is also serialized as JSON in the text content for clients that do not read structuredContent. | |
| warnings | No | Optional agent-visible warnings about degraded result fidelity. Omitted when the server returned the documented happy-path payload. |