Upload a local file to Google Drive
uploadUploads a local file to Google Drive and returns its URL, converting office files to native Google Docs, Sheets, or Slides with formatting preserved.
Instructions
Upload a local file to Google Drive and return its URL. By default (convert: auto) spreadsheets (xlsx/csv/tsv/ods) become Google Sheets, documents (docx/md/txt/html/rtf/odt) become Google Docs, and slides (pptx/odp) become Google Slides via Drive's own import, which carries over most formatting. Other files are stored as-is. Files go to My Drive root unless folder_id is given. If drivelift is not set up, the error carries next_steps to relay to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name in Drive. Default: the file name (extension dropped when converting) | |
| path | Yes | Local file path (absolute, or relative to the server's working directory) | |
| convert | No | auto (default) / none / spreadsheet / document / presentation | |
| folder_id | No | Destination folder ID (the part after /folders/ in the folder URL). Caution: with the drive.file scope, folders that drivelift did not create are usually invisible to it and Drive returns 404; omit it to upload to My Drive root. |