drive_upload_file
Upload a file to Google Drive by providing content or a local file path. Specify the target Google account, file name, MIME type, and optional parent folder.
Instructions
Upload a file to Google Drive. Provide content as UTF-8 text, base64-encoded binary (set isBase64: true), or a local file path (the server reads the file from disk).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name including extension | |
| content | No | File content (UTF-8 text or base64-encoded binary). Provide this OR filePath. | |
| filePath | No | Absolute path to file on disk (provide this OR content). Server reads the file directly. | |
| isBase64 | No | Set to true if content is base64-encoded (only used with content, not filePath) | |
| mimeType | Yes | MIME type of the file (e.g., "text/plain", "application/pdf") | |
| accountId | Yes | The Google account ID, alias, or email | |
| parentFolderId | No | Parent folder ID (default: root) |