Move a Google Drive file to the Bin
Automatically move a Google Drive file to the Bin on drive.google.com. Moves a file to Drive's Bin (never a permanent delete), given just the file's id — its parent folder is resolved automatically.
Input
fileId requiredDrive file id to trash, i.e. the <id> in drive.google.com/file/d/<id>/view.
Output
fileId requiredtrashed requiredFAQ
Upload a file to Google Drive
Upload a file into a Google Drive folder, or into My Drive when no folder is given. Pass convert:true to store an Office/CSV/text file as a native Google Doc, Sheet or Slides instead of the raw file (the raw upload is moved to the Bin). Pass the bytes inline as base64 for small files, or point fileUrl at the file served over http://127.0.0.1:<port>/ on the machine running the browser for larger ones. Before reporting success it confirms a file absent beforehand AND carrying this call's own filename appeared: first in the folder view (up to 2 min), then, if the view lags, through Drive's own API (up to 1 more min), so a slow upload that did land is still reported with its real id. A filename already present in the destination is refused up front, because Drive stores a second, separate file under the same name. For the same reason a lost upload is reported as a failure rather than retried.
List a Google Drive folder
List the files and sub-folders directly inside a Google Drive folder, without recursing or downloading anything. Returns each item's id, name, type, size, last-modified date, owner and link. Omit folderId to list My Drive's root.
Download a Google Drive file
Download one Drive file by id to the device. Binary files (PDFs, images, video, Office documents) download as stored; Google-native Docs, Sheets and Slides are converted on the way out, so pass format to choose pdf, docx, xlsx, csv and the rest. Returns the saved filename and location. For a whole folder, list it first and call this once per file.
