upload_file
Upload a local file to Google Drive, optionally converting it to a Google Doc, Sheet, or Slides format by specifying the target type.
Instructions
WRITES. Upload a local file. With convertTo the upload is imported as a Google-native file (e.g. a .docx or .md into a Google Doc, a .csv or .xlsx into a Sheet).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name in Drive. Default: the local file name. | |
| folderId | No | Parent folder. Default My Drive root. | |
| mimeType | No | MIME type of the local file. Guessed from the extension when omitted. | |
| convertTo | No | ||
| localPath | Yes | Absolute path of the file to upload. |