upload_file
Upload a file to Google Drive by providing text or base64-encoded content. Specify a folder ID to place it in a specific folder.
Instructions
Uploads a file to Google Drive. Pass text content directly or base64-encoded content for binary files (e.g. PPTX, PDF). Use folder_id to place the file in a specific folder — obtain it with search_files first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name including extension | |
| content | Yes | File content as text, or base64-encoded for binary files | |
| mime_type | No | MIME type (e.g. text/plain, application/vnd.openxmlformats-officedocument.presentationml.presentation). Defaults to text/plain. | |
| folder_id | No | ID of the parent folder. Omit to upload to Drive root. | |
| base64 | No | Set true if content is base64-encoded binary |