Use Google Drive to manage files, folders, metadata, and permissions. Download and content actions export Google Workspace files; the Export action lets you choose a supported output format.
Sim requests these scopes when someone connects a Google Drive account. For a self-hosted deployment, register your own app with the provider using the settings below. See Integrations and OAuth for setup.
Setting Value Redirect URI <NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/google-driveEnvironment variables GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET
Scope Description https://www.googleapis.com/auth/userinfo.emailView email address https://www.googleapis.com/auth/userinfo.profileView basic profile info https://www.googleapis.com/auth/drive.fileView and manage Google Drive files you open or create with Sim https://www.googleapis.com/auth/driveView, edit, create, and delete all Google Drive files
Create, upload, download, export, copy, move, delete, or share files and folders, and manage their metadata and permissions.
List files and folders in Google Drive with complete metadata
Inputs and outputsParameter Type Required Description folderSelectorstring No Google Drive folder ID to list files from (e.g., 1ABCxyz...) folderIdstring No The ID of the folder to list files from (internal use) querystring No Search 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. pageSizenumber No The maximum number of files to return (default: 100) pageTokenstring No The page token to use for pagination
Parameter Type Description filesarray Array of file metadata objects from Google Drive ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ description string File description ↳ originalFilename string Original uploaded filename ↳ fullFileExtension string Full file extension ↳ fileExtension string File extension ↳ owners json List of file owners ↳ permissions json File permissions ↳ permissionIds json Permission IDs ↳ shared boolean Whether file is shared ↳ ownedByMe boolean Whether owned by current user ↳ writersCanShare boolean Whether writers can share ↳ viewersCanCopyContent boolean Whether viewers can copy ↳ copyRequiresWriterPermission boolean Whether copy requires writer permission ↳ sharingUser json User who shared the file ↳ starred boolean Whether file is starred ↳ trashed boolean Whether file is in trash ↳ explicitlyTrashed boolean Whether explicitly trashed ↳ appProperties json App-specific properties ↳ createdTime string File creation time ↳ modifiedTime string Last modification time ↳ modifiedByMeTime string When modified by current user ↳ viewedByMeTime string When last viewed by current user ↳ sharedWithMeTime string When shared with current user ↳ lastModifyingUser json User who last modified the file ↳ viewedByMe boolean Whether viewed by current user ↳ modifiedByMe boolean Whether modified by current user ↳ webViewLink string URL to view in browser ↳ webContentLink string Direct download URL ↳ iconLink string URL to file icon ↳ thumbnailLink string URL to thumbnail ↳ exportLinks json Export format links ↳ size string File size in bytes ↳ quotaBytesUsed string Storage quota used ↳ md5Checksum string MD5 hash ↳ sha1Checksum string SHA-1 hash ↳ sha256Checksum string SHA-256 hash ↳ parents json Parent folder IDs ↳ spaces json Spaces containing file ↳ driveId string Shared drive ID ↳ capabilities json User capabilities on file ↳ version string Version number ↳ headRevisionId string Head revision ID ↳ hasThumbnail boolean Whether has thumbnail ↳ thumbnailVersion string Thumbnail version ↳ imageMediaMetadata json Image-specific metadata ↳ videoMediaMetadata json Video-specific metadata ↳ isAppAuthorized boolean Whether created by requesting app ↳ contentRestrictions json Content restrictions ↳ linkShareMetadata json Link share metadata nextPageTokenstring Page token for the next page of files; absent from the response when the end of the files list has been reached
Get metadata for a specific file in Google Drive by its ID
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to retrieve
Parameter Type Description filejson The file metadata ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ description string File description ↳ size string File size in bytes ↳ starred boolean Whether file is starred ↳ trashed boolean Whether file is in trash ↳ webViewLink string URL to view in browser ↳ webContentLink string Direct download URL ↳ iconLink string URL to file icon ↳ thumbnailLink string URL to thumbnail ↳ parents json Parent folder IDs ↳ owners json List of file owners ↳ permissions json File permissions ↳ createdTime string File creation time ↳ modifiedTime string Last modification time ↳ lastModifyingUser json User who last modified the file ↳ shared boolean Whether file is shared ↳ ownedByMe boolean Whether owned by current user ↳ capabilities json User capabilities on file ↳ md5Checksum string MD5 hash ↳ version string Version number
Get content from a file in Google Drive with complete metadata (exports Google Workspace files automatically)
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to get content from mimeTypestring No The MIME type to export Google Workspace files to (optional) includeRevisionsboolean No Whether to include revision history in the metadata (default: true, returns first 100 revisions)
Parameter Type Description contentstring File content as text (Google Workspace files are exported) metadataobject Complete file metadata from Google Drive ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ description string File description ↳ originalFilename string Original uploaded filename ↳ fullFileExtension string Full file extension ↳ fileExtension string File extension ↳ owners json List of file owners ↳ permissions json File permissions ↳ permissionIds json Permission IDs ↳ shared boolean Whether file is shared ↳ ownedByMe boolean Whether owned by current user ↳ writersCanShare boolean Whether writers can share ↳ viewersCanCopyContent boolean Whether viewers can copy ↳ copyRequiresWriterPermission boolean Whether copy requires writer permission ↳ sharingUser json User who shared the file ↳ starred boolean Whether file is starred ↳ trashed boolean Whether file is in trash ↳ explicitlyTrashed boolean Whether explicitly trashed ↳ appProperties json App-specific properties ↳ createdTime string File creation time ↳ modifiedTime string Last modification time ↳ modifiedByMeTime string When modified by current user ↳ viewedByMeTime string When last viewed by current user ↳ sharedWithMeTime string When shared with current user ↳ lastModifyingUser json User who last modified the file ↳ viewedByMe boolean Whether viewed by current user ↳ modifiedByMe boolean Whether modified by current user ↳ webViewLink string URL to view in browser ↳ webContentLink string Direct download URL ↳ iconLink string URL to file icon ↳ thumbnailLink string URL to thumbnail ↳ exportLinks json Export format links ↳ size string File size in bytes ↳ quotaBytesUsed string Storage quota used ↳ md5Checksum string MD5 hash ↳ sha1Checksum string SHA-1 hash ↳ sha256Checksum string SHA-256 hash ↳ parents json Parent folder IDs ↳ spaces json Spaces containing file ↳ driveId string Shared drive ID ↳ capabilities json User capabilities on file ↳ version string Version number ↳ headRevisionId string Head revision ID ↳ hasThumbnail boolean Whether has thumbnail ↳ thumbnailVersion string Thumbnail version ↳ imageMediaMetadata json Image-specific metadata ↳ videoMediaMetadata json Video-specific metadata ↳ isAppAuthorized boolean Whether created by requesting app ↳ contentRestrictions json Content restrictions ↳ linkShareMetadata json Link share metadata ↳ revisions json File revision history (first 100 revisions only)
Create a new folder in Google Drive with complete metadata returned
Inputs and outputsParameter Type Required Description fileNamestring Yes Name of the folder to create folderSelectorstring No Google Drive parent folder ID to create the folder in (e.g., 1ABCxyz...) folderIdstring No ID of the parent folder (internal use)
Parameter Type Description fileobject Complete created folder metadata from Google Drive ↳ id string Google Drive folder ID ↳ kind string Resource type identifier ↳ name string Folder name ↳ mimeType string MIME type (application/vnd.google-apps.folder) ↳ description string Folder description ↳ owners json List of folder owners ↳ permissions json Folder permissions ↳ permissionIds json Permission IDs ↳ shared boolean Whether folder is shared ↳ ownedByMe boolean Whether owned by current user ↳ writersCanShare boolean Whether writers can share ↳ viewersCanCopyContent boolean Whether viewers can copy ↳ copyRequiresWriterPermission boolean Whether copy requires writer permission ↳ sharingUser json User who shared the folder ↳ starred boolean Whether folder is starred ↳ trashed boolean Whether folder is in trash ↳ explicitlyTrashed boolean Whether explicitly trashed ↳ appProperties json App-specific properties ↳ folderColorRgb string Folder color ↳ createdTime string Folder creation time ↳ modifiedTime string Last modification time ↳ modifiedByMeTime string When modified by current user ↳ viewedByMeTime string When last viewed by current user ↳ sharedWithMeTime string When shared with current user ↳ lastModifyingUser json User who last modified the folder ↳ viewedByMe boolean Whether viewed by current user ↳ modifiedByMe boolean Whether modified by current user ↳ webViewLink string URL to view in browser ↳ iconLink string URL to folder icon ↳ parents json Parent folder IDs ↳ spaces json Spaces containing folder ↳ driveId string Shared drive ID ↳ capabilities json User capabilities on folder ↳ version string Version number ↳ isAppAuthorized boolean Whether created by requesting app ↳ contentRestrictions json Content restrictions ↳ linkShareMetadata json Link share metadata
Upload a file to Google Drive with complete metadata returned
Inputs and outputsParameter Type Required Description fileNamestring Yes The name of the file to upload filefile No Binary file to upload (UserFile object) contentstring No Text content to upload (use this OR file, not both) mimeTypestring No The MIME type of the file to upload (auto-detected from file if not provided) folderSelectorstring No Google Drive folder ID to upload the file to (e.g., 1ABCxyz...) folderIdstring No The ID of the folder to upload the file to (internal use)
Parameter Type Description fileobject Complete uploaded file metadata from Google Drive ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ description string File description ↳ originalFilename string Original uploaded filename ↳ fullFileExtension string Full file extension ↳ fileExtension string File extension ↳ owners json List of file owners ↳ permissions json File permissions ↳ permissionIds json Permission IDs ↳ shared boolean Whether file is shared ↳ ownedByMe boolean Whether owned by current user ↳ writersCanShare boolean Whether writers can share ↳ viewersCanCopyContent boolean Whether viewers can copy ↳ copyRequiresWriterPermission boolean Whether copy requires writer permission ↳ sharingUser json User who shared the file ↳ starred boolean Whether file is starred ↳ trashed boolean Whether file is in trash ↳ explicitlyTrashed boolean Whether explicitly trashed ↳ appProperties json App-specific properties ↳ createdTime string File creation time ↳ modifiedTime string Last modification time ↳ modifiedByMeTime string When modified by current user ↳ viewedByMeTime string When last viewed by current user ↳ sharedWithMeTime string When shared with current user ↳ lastModifyingUser json User who last modified the file ↳ viewedByMe boolean Whether viewed by current user ↳ modifiedByMe boolean Whether modified by current user ↳ webViewLink string URL to view in browser ↳ webContentLink string Direct download URL ↳ iconLink string URL to file icon ↳ thumbnailLink string URL to thumbnail ↳ exportLinks json Export format links ↳ size string File size in bytes ↳ quotaBytesUsed string Storage quota used ↳ md5Checksum string MD5 hash ↳ sha1Checksum string SHA-1 hash ↳ sha256Checksum string SHA-256 hash ↳ parents json Parent folder IDs ↳ spaces json Spaces containing file ↳ driveId string Shared drive ID ↳ capabilities json User capabilities on file ↳ version string Version number ↳ headRevisionId string Head revision ID ↳ hasThumbnail boolean Whether has thumbnail ↳ thumbnailVersion string Thumbnail version ↳ imageMediaMetadata json Image-specific metadata ↳ videoMediaMetadata json Video-specific metadata ↳ isAppAuthorized boolean Whether created by requesting app ↳ contentRestrictions json Content restrictions ↳ linkShareMetadata json Link share metadata
Download a file from Google Drive with complete metadata (exports Google Workspace files automatically)
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to download mimeTypestring No The MIME type to export Google Workspace files to (optional) fileNamestring No Optional filename override includeRevisionsboolean No Whether to include revision history in the metadata (default: true, returns first 100 revisions)
Parameter Type Description filefile Downloaded file stored in execution files metadataobject Complete file metadata from Google Drive ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ description string File description ↳ originalFilename string Original uploaded filename ↳ fullFileExtension string Full file extension ↳ fileExtension string File extension ↳ owners json List of file owners ↳ permissions json File permissions ↳ permissionIds json Permission IDs ↳ shared boolean Whether file is shared ↳ ownedByMe boolean Whether owned by current user ↳ writersCanShare boolean Whether writers can share ↳ viewersCanCopyContent boolean Whether viewers can copy ↳ copyRequiresWriterPermission boolean Whether copy requires writer permission ↳ sharingUser json User who shared the file ↳ starred boolean Whether file is starred ↳ trashed boolean Whether file is in trash ↳ explicitlyTrashed boolean Whether explicitly trashed ↳ appProperties json App-specific properties ↳ createdTime string File creation time ↳ modifiedTime string Last modification time ↳ modifiedByMeTime string When modified by current user ↳ viewedByMeTime string When last viewed by current user ↳ sharedWithMeTime string When shared with current user ↳ lastModifyingUser json User who last modified the file ↳ viewedByMe boolean Whether viewed by current user ↳ modifiedByMe boolean Whether modified by current user ↳ webViewLink string URL to view in browser ↳ webContentLink string Direct download URL ↳ iconLink string URL to file icon ↳ thumbnailLink string URL to thumbnail ↳ exportLinks json Export format links ↳ size string File size in bytes ↳ quotaBytesUsed string Storage quota used ↳ md5Checksum string MD5 hash ↳ sha1Checksum string SHA-1 hash ↳ sha256Checksum string SHA-256 hash ↳ parents json Parent folder IDs ↳ spaces json Spaces containing file ↳ driveId string Shared drive ID ↳ capabilities json User capabilities on file ↳ version string Version number ↳ headRevisionId string Head revision ID ↳ hasThumbnail boolean Whether has thumbnail ↳ thumbnailVersion string Thumbnail version ↳ imageMediaMetadata json Image-specific metadata ↳ videoMediaMetadata json Video-specific metadata ↳ isAppAuthorized boolean Whether created by requesting app ↳ contentRestrictions json Content restrictions ↳ linkShareMetadata json Link share metadata ↳ revisions json File revision history (first 100 revisions only)
Create a copy of a file in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to copy newNamestring No Name for the copied file (defaults to "Copy of [original name]") destinationFolderIdstring No ID of the folder to place the copy in (defaults to same location as original)
Parameter Type Description filejson The copied file metadata ↳ id string Google Drive file ID of the copy ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ webViewLink string URL to view in browser ↳ parents json Parent folder IDs ↳ createdTime string File creation time ↳ modifiedTime string Last modification time ↳ owners json List of file owners ↳ size string File size in bytes
Move a file or folder to a different folder in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file or folder to move destinationFolderIdstring Yes The ID of the destination folder removeFromCurrentboolean No Whether to remove the current parent when adding the destination (default: true). Google Drive supports one parent folder, so false can be rejected when the file already has a different parent.
Parameter Type Description filejson The moved file metadata ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ webViewLink string URL to view in browser ↳ parents json Parent folder IDs ↳ createdTime string File creation time ↳ modifiedTime string Last modification time ↳ owners json List of file owners ↳ size string File size in bytes
Search for files in Google Drive using advanced query syntax (e.g., fullText contains, mimeType, modifiedTime, etc.)
Inputs and outputsParameter Type Required Description querystring Yes Google Drive query string using advanced search syntax (e.g., "fullText contains 'budget'", "mimeType = 'application/pdf'", "modifiedTime > '2024-01-01'") pageSizenumber No Maximum number of files to return (default: 100) pageTokenstring No Token for fetching the next page of results
Parameter Type Description filesarray Array of file metadata objects matching the search query ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ description string File description ↳ originalFilename string Original uploaded filename ↳ fullFileExtension string Full file extension ↳ fileExtension string File extension ↳ owners json List of file owners ↳ permissions json File permissions ↳ shared boolean Whether file is shared ↳ ownedByMe boolean Whether owned by current user ↳ starred boolean Whether file is starred ↳ trashed boolean Whether file is in trash ↳ createdTime string File creation time ↳ modifiedTime string Last modification time ↳ lastModifyingUser json User who last modified the file ↳ webViewLink string URL to view in browser ↳ webContentLink string Direct download URL ↳ iconLink string URL to file icon ↳ thumbnailLink string URL to thumbnail ↳ size string File size in bytes ↳ parents json Parent folder IDs ↳ driveId string Shared drive ID ↳ capabilities json User capabilities on file ↳ version string Version number nextPageTokenstring Page token for the next page of files; absent from the response when the end of the files list has been reached
Update file metadata in Google Drive (rename, move, star, add description)
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to update namestring No New name for the file descriptionstring No New description for the file addParentsstring No Comma-separated list of parent folder IDs to add (moves file to these folders) removeParentsstring No Comma-separated list of parent folder IDs to remove starredboolean No Whether to star or unstar the file
Parameter Type Description filejson The updated file metadata ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ description string File description ↳ starred boolean Whether file is starred ↳ webViewLink string URL to view in browser ↳ parents json Parent folder IDs ↳ modifiedTime string Last modification time
Move a file to the trash in Google Drive (can be restored later)
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to move to trash
Parameter Type Description filejson The trashed file metadata ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ trashed boolean Whether file is in trash (should be true) ↳ trashedTime string When file was trashed ↳ webViewLink string URL to view in browser
Restore a file from the trash in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to restore from trash
Parameter Type Description filejson The restored file metadata ↳ id string Google Drive file ID ↳ kind string Resource type identifier ↳ name string File name ↳ mimeType string MIME type ↳ trashed boolean Whether file is in trash (should be false) ↳ webViewLink string URL to view in browser ↳ parents json Parent folder IDs
Permanently delete a file from Google Drive (bypasses trash)
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to permanently delete
Parameter Type Description deletedboolean Whether the file was successfully deleted fileIdstring The ID of the deleted file
Share a file with a user, group, domain, or make it public
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to share typestring Yes Type of grantee: user, group, domain, or anyone rolestring Yes Permission role: owner (transfer ownership), organizer (shared drive only), fileOrganizer (shared drive only), writer (edit), commenter (view and comment), reader (view only) emailstring No Email address of the user or group (required for type=user or type=group) domainstring No Domain to share with (required for type=domain) transferOwnershipboolean No Required when role is owner. Transfers ownership to the specified user. moveToNewOwnersRootboolean No When transferring ownership, move the file to the new owner's My Drive root folder. sendNotificationboolean No Whether to send an email notification (default: true) emailMessagestring No Custom message to include in the notification email
Parameter Type Description permissionjson The created permission details ↳ id string Permission ID ↳ type string Grantee type (user, group, domain, anyone) ↳ role string Permission role ↳ emailAddress string Email of the grantee ↳ displayName string Display name of the grantee ↳ domain string Domain of the grantee ↳ expirationTime string Expiration time ↳ deleted boolean Whether grantee is deleted
Remove a permission from a file (revoke access)
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to modify permissions on permissionIdstring Yes The ID of the permission to remove (use list_permissions to find this)
Parameter Type Description removedboolean Whether the permission was successfully removed fileIdstring The ID of the file permissionIdstring The ID of the removed permission
List all permissions (who has access) for a file in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to list permissions for pageTokenstring No The page token to use for pagination
Parameter Type Description permissionsarray List of permissions on the file ↳ id string Permission ID (use to remove permission) ↳ type string Grantee type (user, group, domain, anyone) ↳ role string Permission role (owner, organizer, fileOrganizer, writer, commenter, reader) ↳ emailAddress string Email of the grantee ↳ displayName string Display name of the grantee ↳ photoLink string Photo URL of the grantee ↳ domain string Domain of the grantee ↳ expirationTime string When permission expires ↳ deleted boolean Whether grantee account is deleted ↳ allowFileDiscovery boolean Whether file is discoverable by grantee ↳ pendingOwner boolean Whether ownership transfer is pending ↳ permissionDetails json Details about inherited permissions nextPageTokenstring Page token for the next page of permissions; absent from the response when the end of the permissions list has been reached
Export a Google Workspace file (Docs, Sheets, Slides, Drawings) to a chosen format such as PDF, DOCX, XLSX, or CSV
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the Google Workspace file to export mimeTypestring Yes The target MIME type to export to (e.g. application/pdf, text/csv) fileNamestring No Optional filename override for the exported file
Parameter Type Description filefile Exported file stored in execution files exportedMimeTypestring The MIME type the file was exported to
List the revision history of a file in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to list revisions for pageSizenumber No Maximum number of revisions to return (1-1000, default 200) pageTokenstring No The page token to use for pagination
Parameter Type Description revisionsarray List of revisions for the file (most recent last) ↳ id string Revision ID ↳ mimeType string MIME type of the revision ↳ modifiedTime string When this revision was created ↳ keepForever boolean Whether this revision is preserved forever ↳ published boolean Whether this revision is published ↳ publishedLink string Public link to the published revision ↳ lastModifyingUser json User who created this revision ↳ originalFilename string Original filename for binary revisions ↳ md5Checksum string MD5 checksum for binary revisions ↳ size string Size of the revision in bytes ↳ exportLinks json Export format links for the revision nextPageTokenstring Page token for the next page of revisions; absent from the response when the end of the revisions list has been reached
Get metadata for a specific revision of a file in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file the revision belongs to revisionIdstring Yes The ID of the revision to retrieve
Parameter Type Description revisionjson The revision metadata ↳ id string Revision ID ↳ mimeType string MIME type of the revision ↳ modifiedTime string When this revision was created ↳ keepForever boolean Whether this revision is preserved forever ↳ published boolean Whether this revision is published ↳ publishedLink string Public link to the published revision ↳ lastModifyingUser json User who created this revision ↳ originalFilename string Original filename for binary revisions ↳ md5Checksum string MD5 checksum for binary revisions ↳ size string Size of the revision in bytes ↳ exportLinks json Export format links for the revision
List comments on a file in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to list comments for includeDeletedboolean No Whether to include deleted comments (their content is stripped) pageSizenumber No Maximum number of comments to return (1-100, default 20) startModifiedTimestring No Only return comments modified after this RFC 3339 timestamp pageTokenstring No The page token to use for pagination
Parameter Type Description commentsarray List of comments on the file ↳ id string Comment ID ↳ content string Plain text content of the comment ↳ htmlContent string HTML-formatted content of the comment ↳ author json User who authored the comment ↳ createdTime string When the comment was created ↳ modifiedTime string When the comment was last modified ↳ resolved boolean Whether the comment has been resolved ↳ deleted boolean Whether the comment has been deleted ↳ anchor string Region of the document the comment refers to ↳ quotedFileContent json The file content the comment quotes ↳ replies json Threaded replies to the comment nextPageTokenstring Page token for the next page of comments; absent from the response when the end of the comments list has been reached
Add a comment to a file in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to comment on contentstring Yes The plain text content of the comment anchorstring No A region of the document the comment refers to (JSON anchor string)
Parameter Type Description commentjson The created comment ↳ id string Comment ID ↳ content string Plain text content of the comment ↳ htmlContent string HTML-formatted content of the comment ↳ author json User who authored the comment ↳ createdTime string When the comment was created ↳ modifiedTime string When the comment was last modified ↳ resolved boolean Whether the comment has been resolved ↳ deleted boolean Whether the comment has been deleted ↳ anchor string Region of the document the comment refers to ↳ quotedFileContent json The file content the comment quotes ↳ replies json Threaded replies to the comment
Delete a comment from a file in Google Drive
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file the comment belongs to commentIdstring Yes The ID of the comment to delete
Parameter Type Description deletedboolean Whether the comment was successfully deleted fileIdstring The ID of the file commentIdstring The ID of the deleted comment
Get information about the user and their Google Drive (storage quota, capabilities)
Inputs and outputsParameter Type Required Description
Parameter Type Description userjson Information about the authenticated user ↳ displayName string User display name ↳ emailAddress string User email address ↳ photoLink string URL to user profile photo ↳ permissionId string User permission ID ↳ me boolean Whether this is the authenticated user storageQuotajson Storage quota information in bytes ↳ limit string Total storage limit in bytes (null for unlimited) ↳ usage string Total storage used in bytes ↳ usageInDrive string Storage used by Drive files in bytes ↳ usageInDriveTrash string Storage used by trashed files in bytes canCreateDrivesboolean Whether user can create shared drives importFormatsjson Map of MIME types that can be imported and their target formats exportFormatsjson Map of Google Workspace MIME types and their exportable formats maxUploadSizestring Maximum upload size in bytes
A trigger starts a workflow when a supported event occurs in this service.
These triggers poll for new data on a schedule.
Triggers when files are created, modified, or deleted in Google Drive
Parameter Type Required Description triggerCredentialsstring Yes Connect your Google account to access Google Drive. folderIdfile-selector No Optional: The folder to monitor. Leave empty to monitor all files in Drive. manualFolderIdstring No Optional: The folder ID from the Google Drive URL to monitor. Leave empty to monitor all files. mimeTypeFilterstring No Optional: Only trigger for specific file types. eventTypeFilterstring No Only trigger for specific change types. Defaults to all changes. includeSharedDrivesboolean No Include files from shared (team) drives.
Parameter Type Description fileobject ↳ id string Google Drive file ID ↳ name string File name ↳ mimeType string File MIME type ↳ modifiedTime string Last modified time (ISO) ↳ createdTime string File creation time (ISO) ↳ size string File size in bytes ↳ webViewLink string URL to view file in browser ↳ parents json Parent folder IDs ↳ lastModifyingUser json User who last modified the file ↳ shared boolean Whether file is shared ↳ starred boolean Whether file is starred eventTypestring Change type: "created", "modified", or "deleted" timestampstring Event timestamp in ISO format