Mandala
Tools

Google Drive

Create, upload, and list files

Usage Instructions

Integrate Google Drive into the workflow. Can create, upload, and list files.

Tools

google_drive_upload

Upload a file to Google Drive

Input

ParameterTypeRequiredDescription
fileNamestringYesThe name of the file to upload
filefileNoBinary file to upload (UserFile object)
contentstringNoText content to upload (use this OR file, not both)
folderSelectorstringNoSelect the folder to upload the file to

Output

ParameterTypeDescription
filejsonUploaded file metadata including ID, name, and links

google_drive_create_folder

Create a new folder in Google Drive

Input

ParameterTypeRequiredDescription
fileNamestringYesName of the folder to create
folderSelectorstringNoSelect the parent folder to create the folder in

Output

ParameterTypeDescription
filejsonCreated folder metadata including ID, name, and parent information

google_drive_download

Download a file from Google Drive (exports Google Workspace files automatically)

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to download
fileNamestringNoOptional filename override

Output

ParameterTypeDescription
filefileDownloaded file stored in execution files

google_drive_list

List files and folders in Google Drive

Input

ParameterTypeRequiredDescription
folderSelectorstringNoSelect the folder to list files from
querystringNoSearch term to filter files by name (e.g. "budget" finds files with "budget" in the name). Do NOT use Google Drive query syntax here - just provide a plain search term.
pageSizenumberNoThe maximum number of files to return (default: 100)

Output

ParameterTypeDescription
filesjsonArray of file metadata objects from the specified folder

Notes

  • Category: tools
  • Type: google_drive
Google Drive