Google Drive

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.

Usage Instructions

Integrate Google Drive into the workflow. Can create, upload, download, copy, move, delete, share files and manage permissions.

Actions

List Google Drive Files

List files and folders in Google Drive with complete metadata

Input

ParameterTypeRequiredDescription
folderSelectorstringNoGoogle Drive folder ID to list files from (e.g., 1ABCxyz...)
folderIdstringNoThe ID of the folder to list files from (internal use)
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)
pageTokenstringNoThe page token to use for pagination

Output

ParameterTypeDescription
filesarrayArray of file metadata objects from Google Drive
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ descriptionstringFile description
↳ originalFilenamestringOriginal uploaded filename
↳ fullFileExtensionstringFull file extension
↳ fileExtensionstringFile extension
↳ ownersjsonList of file owners
↳ permissionsjsonFile permissions
↳ permissionIdsjsonPermission IDs
↳ sharedbooleanWhether file is shared
↳ ownedByMebooleanWhether owned by current user
↳ writersCanSharebooleanWhether writers can share
↳ viewersCanCopyContentbooleanWhether viewers can copy
↳ copyRequiresWriterPermissionbooleanWhether copy requires writer permission
↳ sharingUserjsonUser who shared the file
↳ starredbooleanWhether file is starred
↳ trashedbooleanWhether file is in trash
↳ explicitlyTrashedbooleanWhether explicitly trashed
↳ appPropertiesjsonApp-specific properties
↳ createdTimestringFile creation time
↳ modifiedTimestringLast modification time
↳ modifiedByMeTimestringWhen modified by current user
↳ viewedByMeTimestringWhen last viewed by current user
↳ sharedWithMeTimestringWhen shared with current user
↳ lastModifyingUserjsonUser who last modified the file
↳ viewedByMebooleanWhether viewed by current user
↳ modifiedByMebooleanWhether modified by current user
↳ webViewLinkstringURL to view in browser
↳ webContentLinkstringDirect download URL
↳ iconLinkstringURL to file icon
↳ thumbnailLinkstringURL to thumbnail
↳ exportLinksjsonExport format links
↳ sizestringFile size in bytes
↳ quotaBytesUsedstringStorage quota used
↳ md5ChecksumstringMD5 hash
↳ sha1ChecksumstringSHA-1 hash
↳ sha256ChecksumstringSHA-256 hash
↳ parentsjsonParent folder IDs
↳ spacesjsonSpaces containing file
↳ driveIdstringShared drive ID
↳ capabilitiesjsonUser capabilities on file
↳ versionstringVersion number
↳ headRevisionIdstringHead revision ID
↳ hasThumbnailbooleanWhether has thumbnail
↳ thumbnailVersionstringThumbnail version
↳ imageMediaMetadatajsonImage-specific metadata
↳ videoMediaMetadatajsonVideo-specific metadata
↳ isAppAuthorizedbooleanWhether created by requesting app
↳ contentRestrictionsjsonContent restrictions
↳ linkShareMetadatajsonLink share metadata
nextPageTokenstringPage token for the next page of files; absent from the response when the end of the files list has been reached

Get Google Drive File

Get metadata for a specific file in Google Drive by its ID

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to retrieve

Output

ParameterTypeDescription
filejsonThe file metadata
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ descriptionstringFile description
↳ sizestringFile size in bytes
↳ starredbooleanWhether file is starred
↳ trashedbooleanWhether file is in trash
↳ webViewLinkstringURL to view in browser
↳ webContentLinkstringDirect download URL
↳ iconLinkstringURL to file icon
↳ thumbnailLinkstringURL to thumbnail
↳ parentsjsonParent folder IDs
↳ ownersjsonList of file owners
↳ permissionsjsonFile permissions
↳ createdTimestringFile creation time
↳ modifiedTimestringLast modification time
↳ lastModifyingUserjsonUser who last modified the file
↳ sharedbooleanWhether file is shared
↳ ownedByMebooleanWhether owned by current user
↳ capabilitiesjsonUser capabilities on file
↳ md5ChecksumstringMD5 hash
↳ versionstringVersion number

Get Content from Google Drive

Get content from a file in Google Drive with complete metadata (exports Google Workspace files automatically)

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to get content from
mimeTypestringNoThe MIME type to export Google Workspace files to (optional)
includeRevisionsbooleanNoWhether to include revision history in the metadata (default: true, returns first 100 revisions)

Output

ParameterTypeDescription
contentstringFile content as text (Google Workspace files are exported)
metadataobjectComplete file metadata from Google Drive
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ descriptionstringFile description
↳ originalFilenamestringOriginal uploaded filename
↳ fullFileExtensionstringFull file extension
↳ fileExtensionstringFile extension
↳ ownersjsonList of file owners
↳ permissionsjsonFile permissions
↳ permissionIdsjsonPermission IDs
↳ sharedbooleanWhether file is shared
↳ ownedByMebooleanWhether owned by current user
↳ writersCanSharebooleanWhether writers can share
↳ viewersCanCopyContentbooleanWhether viewers can copy
↳ copyRequiresWriterPermissionbooleanWhether copy requires writer permission
↳ sharingUserjsonUser who shared the file
↳ starredbooleanWhether file is starred
↳ trashedbooleanWhether file is in trash
↳ explicitlyTrashedbooleanWhether explicitly trashed
↳ appPropertiesjsonApp-specific properties
↳ createdTimestringFile creation time
↳ modifiedTimestringLast modification time
↳ modifiedByMeTimestringWhen modified by current user
↳ viewedByMeTimestringWhen last viewed by current user
↳ sharedWithMeTimestringWhen shared with current user
↳ lastModifyingUserjsonUser who last modified the file
↳ viewedByMebooleanWhether viewed by current user
↳ modifiedByMebooleanWhether modified by current user
↳ webViewLinkstringURL to view in browser
↳ webContentLinkstringDirect download URL
↳ iconLinkstringURL to file icon
↳ thumbnailLinkstringURL to thumbnail
↳ exportLinksjsonExport format links
↳ sizestringFile size in bytes
↳ quotaBytesUsedstringStorage quota used
↳ md5ChecksumstringMD5 hash
↳ sha1ChecksumstringSHA-1 hash
↳ sha256ChecksumstringSHA-256 hash
↳ parentsjsonParent folder IDs
↳ spacesjsonSpaces containing file
↳ driveIdstringShared drive ID
↳ capabilitiesjsonUser capabilities on file
↳ versionstringVersion number
↳ headRevisionIdstringHead revision ID
↳ hasThumbnailbooleanWhether has thumbnail
↳ thumbnailVersionstringThumbnail version
↳ imageMediaMetadatajsonImage-specific metadata
↳ videoMediaMetadatajsonVideo-specific metadata
↳ isAppAuthorizedbooleanWhether created by requesting app
↳ contentRestrictionsjsonContent restrictions
↳ linkShareMetadatajsonLink share metadata
↳ revisionsjsonFile revision history (first 100 revisions only)

Create Folder in Google Drive

Create a new folder in Google Drive with complete metadata returned

Input

ParameterTypeRequiredDescription
fileNamestringYesName of the folder to create
folderSelectorstringNoGoogle Drive parent folder ID to create the folder in (e.g., 1ABCxyz...)
folderIdstringNoID of the parent folder (internal use)

Output

ParameterTypeDescription
fileobjectComplete created folder metadata from Google Drive
↳ idstringGoogle Drive folder ID
↳ kindstringResource type identifier
↳ namestringFolder name
↳ mimeTypestringMIME type (application/vnd.google-apps.folder)
↳ descriptionstringFolder description
↳ ownersjsonList of folder owners
↳ permissionsjsonFolder permissions
↳ permissionIdsjsonPermission IDs
↳ sharedbooleanWhether folder is shared
↳ ownedByMebooleanWhether owned by current user
↳ writersCanSharebooleanWhether writers can share
↳ viewersCanCopyContentbooleanWhether viewers can copy
↳ copyRequiresWriterPermissionbooleanWhether copy requires writer permission
↳ sharingUserjsonUser who shared the folder
↳ starredbooleanWhether folder is starred
↳ trashedbooleanWhether folder is in trash
↳ explicitlyTrashedbooleanWhether explicitly trashed
↳ appPropertiesjsonApp-specific properties
↳ folderColorRgbstringFolder color
↳ createdTimestringFolder creation time
↳ modifiedTimestringLast modification time
↳ modifiedByMeTimestringWhen modified by current user
↳ viewedByMeTimestringWhen last viewed by current user
↳ sharedWithMeTimestringWhen shared with current user
↳ lastModifyingUserjsonUser who last modified the folder
↳ viewedByMebooleanWhether viewed by current user
↳ modifiedByMebooleanWhether modified by current user
↳ webViewLinkstringURL to view in browser
↳ iconLinkstringURL to folder icon
↳ parentsjsonParent folder IDs
↳ spacesjsonSpaces containing folder
↳ driveIdstringShared drive ID
↳ capabilitiesjsonUser capabilities on folder
↳ versionstringVersion number
↳ isAppAuthorizedbooleanWhether created by requesting app
↳ contentRestrictionsjsonContent restrictions
↳ linkShareMetadatajsonLink share metadata

Upload to Google Drive

Upload a file to Google Drive with complete metadata returned

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)
mimeTypestringNoThe MIME type of the file to upload (auto-detected from file if not provided)
folderSelectorstringNoGoogle Drive folder ID to upload the file to (e.g., 1ABCxyz...)
folderIdstringNoThe ID of the folder to upload the file to (internal use)

Output

ParameterTypeDescription
fileobjectComplete uploaded file metadata from Google Drive
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ descriptionstringFile description
↳ originalFilenamestringOriginal uploaded filename
↳ fullFileExtensionstringFull file extension
↳ fileExtensionstringFile extension
↳ ownersjsonList of file owners
↳ permissionsjsonFile permissions
↳ permissionIdsjsonPermission IDs
↳ sharedbooleanWhether file is shared
↳ ownedByMebooleanWhether owned by current user
↳ writersCanSharebooleanWhether writers can share
↳ viewersCanCopyContentbooleanWhether viewers can copy
↳ copyRequiresWriterPermissionbooleanWhether copy requires writer permission
↳ sharingUserjsonUser who shared the file
↳ starredbooleanWhether file is starred
↳ trashedbooleanWhether file is in trash
↳ explicitlyTrashedbooleanWhether explicitly trashed
↳ appPropertiesjsonApp-specific properties
↳ createdTimestringFile creation time
↳ modifiedTimestringLast modification time
↳ modifiedByMeTimestringWhen modified by current user
↳ viewedByMeTimestringWhen last viewed by current user
↳ sharedWithMeTimestringWhen shared with current user
↳ lastModifyingUserjsonUser who last modified the file
↳ viewedByMebooleanWhether viewed by current user
↳ modifiedByMebooleanWhether modified by current user
↳ webViewLinkstringURL to view in browser
↳ webContentLinkstringDirect download URL
↳ iconLinkstringURL to file icon
↳ thumbnailLinkstringURL to thumbnail
↳ exportLinksjsonExport format links
↳ sizestringFile size in bytes
↳ quotaBytesUsedstringStorage quota used
↳ md5ChecksumstringMD5 hash
↳ sha1ChecksumstringSHA-1 hash
↳ sha256ChecksumstringSHA-256 hash
↳ parentsjsonParent folder IDs
↳ spacesjsonSpaces containing file
↳ driveIdstringShared drive ID
↳ capabilitiesjsonUser capabilities on file
↳ versionstringVersion number
↳ headRevisionIdstringHead revision ID
↳ hasThumbnailbooleanWhether has thumbnail
↳ thumbnailVersionstringThumbnail version
↳ imageMediaMetadatajsonImage-specific metadata
↳ videoMediaMetadatajsonVideo-specific metadata
↳ isAppAuthorizedbooleanWhether created by requesting app
↳ contentRestrictionsjsonContent restrictions
↳ linkShareMetadatajsonLink share metadata

Download File from Google Drive

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

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to download
mimeTypestringNoThe MIME type to export Google Workspace files to (optional)
fileNamestringNoOptional filename override
includeRevisionsbooleanNoWhether to include revision history in the metadata (default: true, returns first 100 revisions)

Output

ParameterTypeDescription
filefileDownloaded file stored in execution files
metadataobjectComplete file metadata from Google Drive
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ descriptionstringFile description
↳ originalFilenamestringOriginal uploaded filename
↳ fullFileExtensionstringFull file extension
↳ fileExtensionstringFile extension
↳ ownersjsonList of file owners
↳ permissionsjsonFile permissions
↳ permissionIdsjsonPermission IDs
↳ sharedbooleanWhether file is shared
↳ ownedByMebooleanWhether owned by current user
↳ writersCanSharebooleanWhether writers can share
↳ viewersCanCopyContentbooleanWhether viewers can copy
↳ copyRequiresWriterPermissionbooleanWhether copy requires writer permission
↳ sharingUserjsonUser who shared the file
↳ starredbooleanWhether file is starred
↳ trashedbooleanWhether file is in trash
↳ explicitlyTrashedbooleanWhether explicitly trashed
↳ appPropertiesjsonApp-specific properties
↳ createdTimestringFile creation time
↳ modifiedTimestringLast modification time
↳ modifiedByMeTimestringWhen modified by current user
↳ viewedByMeTimestringWhen last viewed by current user
↳ sharedWithMeTimestringWhen shared with current user
↳ lastModifyingUserjsonUser who last modified the file
↳ viewedByMebooleanWhether viewed by current user
↳ modifiedByMebooleanWhether modified by current user
↳ webViewLinkstringURL to view in browser
↳ webContentLinkstringDirect download URL
↳ iconLinkstringURL to file icon
↳ thumbnailLinkstringURL to thumbnail
↳ exportLinksjsonExport format links
↳ sizestringFile size in bytes
↳ quotaBytesUsedstringStorage quota used
↳ md5ChecksumstringMD5 hash
↳ sha1ChecksumstringSHA-1 hash
↳ sha256ChecksumstringSHA-256 hash
↳ parentsjsonParent folder IDs
↳ spacesjsonSpaces containing file
↳ driveIdstringShared drive ID
↳ capabilitiesjsonUser capabilities on file
↳ versionstringVersion number
↳ headRevisionIdstringHead revision ID
↳ hasThumbnailbooleanWhether has thumbnail
↳ thumbnailVersionstringThumbnail version
↳ imageMediaMetadatajsonImage-specific metadata
↳ videoMediaMetadatajsonVideo-specific metadata
↳ isAppAuthorizedbooleanWhether created by requesting app
↳ contentRestrictionsjsonContent restrictions
↳ linkShareMetadatajsonLink share metadata
↳ revisionsjsonFile revision history (first 100 revisions only)

Copy Google Drive File

Create a copy of a file in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to copy
newNamestringNoName for the copied file (defaults to "Copy of [original name]")
destinationFolderIdstringNoID of the folder to place the copy in (defaults to same location as original)

Output

ParameterTypeDescription
filejsonThe copied file metadata
↳ idstringGoogle Drive file ID of the copy
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ webViewLinkstringURL to view in browser
↳ parentsjsonParent folder IDs
↳ createdTimestringFile creation time
↳ modifiedTimestringLast modification time
↳ ownersjsonList of file owners
↳ sizestringFile size in bytes

Move Google Drive File

Move a file or folder to a different folder in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file or folder to move
destinationFolderIdstringYesThe ID of the destination folder
removeFromCurrentbooleanNoWhether to remove the file from its current parent folder (default: true). Set to false to add the file to the destination without removing it from the current location.

Output

ParameterTypeDescription
filejsonThe moved file metadata
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ webViewLinkstringURL to view in browser
↳ parentsjsonParent folder IDs
↳ createdTimestringFile creation time
↳ modifiedTimestringLast modification time
↳ ownersjsonList of file owners
↳ sizestringFile size in bytes

Search Google Drive Files

Search for files in Google Drive using advanced query syntax (e.g., fullText contains, mimeType, modifiedTime, etc.)

Input

ParameterTypeRequiredDescription
querystringYesGoogle Drive query string using advanced search syntax (e.g., "fullText contains 'budget'", "mimeType = 'application/pdf'", "modifiedTime > '2024-01-01'")
pageSizenumberNoMaximum number of files to return (default: 100)
pageTokenstringNoToken for fetching the next page of results

Output

ParameterTypeDescription
filesarrayArray of file metadata objects matching the search query
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ descriptionstringFile description
↳ originalFilenamestringOriginal uploaded filename
↳ fullFileExtensionstringFull file extension
↳ fileExtensionstringFile extension
↳ ownersjsonList of file owners
↳ permissionsjsonFile permissions
↳ sharedbooleanWhether file is shared
↳ ownedByMebooleanWhether owned by current user
↳ starredbooleanWhether file is starred
↳ trashedbooleanWhether file is in trash
↳ createdTimestringFile creation time
↳ modifiedTimestringLast modification time
↳ lastModifyingUserjsonUser who last modified the file
↳ webViewLinkstringURL to view in browser
↳ webContentLinkstringDirect download URL
↳ iconLinkstringURL to file icon
↳ thumbnailLinkstringURL to thumbnail
↳ sizestringFile size in bytes
↳ parentsjsonParent folder IDs
↳ driveIdstringShared drive ID
↳ capabilitiesjsonUser capabilities on file
↳ versionstringVersion number
nextPageTokenstringPage token for the next page of files; absent from the response when the end of the files list has been reached

Update Google Drive File

Update file metadata in Google Drive (rename, move, star, add description)

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to update
namestringNoNew name for the file
descriptionstringNoNew description for the file
addParentsstringNoComma-separated list of parent folder IDs to add (moves file to these folders)
removeParentsstringNoComma-separated list of parent folder IDs to remove
starredbooleanNoWhether to star or unstar the file

Output

ParameterTypeDescription
filejsonThe updated file metadata
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ descriptionstringFile description
↳ starredbooleanWhether file is starred
↳ webViewLinkstringURL to view in browser
↳ parentsjsonParent folder IDs
↳ modifiedTimestringLast modification time

Trash Google Drive File

Move a file to the trash in Google Drive (can be restored later)

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to move to trash

Output

ParameterTypeDescription
filejsonThe trashed file metadata
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ trashedbooleanWhether file is in trash (should be true)
↳ trashedTimestringWhen file was trashed
↳ webViewLinkstringURL to view in browser

Restore Google Drive File

Restore a file from the trash in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to restore from trash

Output

ParameterTypeDescription
filejsonThe restored file metadata
↳ idstringGoogle Drive file ID
↳ kindstringResource type identifier
↳ namestringFile name
↳ mimeTypestringMIME type
↳ trashedbooleanWhether file is in trash (should be false)
↳ webViewLinkstringURL to view in browser
↳ parentsjsonParent folder IDs

Delete Google Drive File

Permanently delete a file from Google Drive (bypasses trash)

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to permanently delete

Output

ParameterTypeDescription
deletedbooleanWhether the file was successfully deleted
fileIdstringThe ID of the deleted file

Share Google Drive File

Share a file with a user, group, domain, or make it public

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to share
typestringYesType of grantee: user, group, domain, or anyone
rolestringYesPermission role: owner (transfer ownership), organizer (shared drive only), fileOrganizer (shared drive only), writer (edit), commenter (view and comment), reader (view only)
emailstringNoEmail address of the user or group (required for type=user or type=group)
domainstringNoDomain to share with (required for type=domain)
transferOwnershipbooleanNoRequired when role is owner. Transfers ownership to the specified user.
moveToNewOwnersRootbooleanNoWhen transferring ownership, move the file to the new owner's My Drive root folder.
sendNotificationbooleanNoWhether to send an email notification (default: true)
emailMessagestringNoCustom message to include in the notification email

Output

ParameterTypeDescription
permissionjsonThe created permission details
↳ idstringPermission ID
↳ typestringGrantee type (user, group, domain, anyone)
↳ rolestringPermission role
↳ emailAddressstringEmail of the grantee
↳ displayNamestringDisplay name of the grantee
↳ domainstringDomain of the grantee
↳ expirationTimestringExpiration time
↳ deletedbooleanWhether grantee is deleted

Unshare Google Drive File

Remove a permission from a file (revoke access)

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to modify permissions on
permissionIdstringYesThe ID of the permission to remove (use list_permissions to find this)

Output

ParameterTypeDescription
removedbooleanWhether the permission was successfully removed
fileIdstringThe ID of the file
permissionIdstringThe ID of the removed permission

List Google Drive Permissions

List all permissions (who has access) for a file in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to list permissions for
pageTokenstringNoThe page token to use for pagination

Output

ParameterTypeDescription
permissionsarrayList of permissions on the file
↳ idstringPermission ID (use to remove permission)
↳ typestringGrantee type (user, group, domain, anyone)
↳ rolestringPermission role (owner, organizer, fileOrganizer, writer, commenter, reader)
↳ emailAddressstringEmail of the grantee
↳ displayNamestringDisplay name of the grantee
↳ photoLinkstringPhoto URL of the grantee
↳ domainstringDomain of the grantee
↳ expirationTimestringWhen permission expires
↳ deletedbooleanWhether grantee account is deleted
↳ allowFileDiscoverybooleanWhether file is discoverable by grantee
↳ pendingOwnerbooleanWhether ownership transfer is pending
↳ permissionDetailsjsonDetails about inherited permissions
nextPageTokenstringPage token for the next page of permissions; absent from the response when the end of the permissions list has been reached

Export Google Drive File

Export a Google Workspace file (Docs, Sheets, Slides, Drawings) to a chosen format such as PDF, DOCX, XLSX, or CSV

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the Google Workspace file to export
mimeTypestringYesThe target MIME type to export to (e.g. application/pdf, text/csv)
fileNamestringNoOptional filename override for the exported file

Output

ParameterTypeDescription
filefileExported file stored in execution files
exportedMimeTypestringThe MIME type the file was exported to

List Google Drive Revisions

List the revision history of a file in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to list revisions for
pageSizenumberNoMaximum number of revisions to return (1-1000, default 200)
pageTokenstringNoThe page token to use for pagination

Output

ParameterTypeDescription
revisionsarrayList of revisions for the file (most recent last)
↳ idstringRevision ID
↳ mimeTypestringMIME type of the revision
↳ modifiedTimestringWhen this revision was created
↳ keepForeverbooleanWhether this revision is preserved forever
↳ publishedbooleanWhether this revision is published
↳ publishedLinkstringPublic link to the published revision
↳ lastModifyingUserjsonUser who created this revision
↳ originalFilenamestringOriginal filename for binary revisions
↳ md5ChecksumstringMD5 checksum for binary revisions
↳ sizestringSize of the revision in bytes
↳ exportLinksjsonExport format links for the revision
nextPageTokenstringPage token for the next page of revisions; absent from the response when the end of the revisions list has been reached

Get Google Drive Revision

Get metadata for a specific revision of a file in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file the revision belongs to
revisionIdstringYesThe ID of the revision to retrieve

Output

ParameterTypeDescription
revisionjsonThe revision metadata
↳ idstringRevision ID
↳ mimeTypestringMIME type of the revision
↳ modifiedTimestringWhen this revision was created
↳ keepForeverbooleanWhether this revision is preserved forever
↳ publishedbooleanWhether this revision is published
↳ publishedLinkstringPublic link to the published revision
↳ lastModifyingUserjsonUser who created this revision
↳ originalFilenamestringOriginal filename for binary revisions
↳ md5ChecksumstringMD5 checksum for binary revisions
↳ sizestringSize of the revision in bytes
↳ exportLinksjsonExport format links for the revision

List Google Drive Comments

List comments on a file in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to list comments for
includeDeletedbooleanNoWhether to include deleted comments (their content is stripped)
pageSizenumberNoMaximum number of comments to return (1-100, default 20)
startModifiedTimestringNoOnly return comments modified after this RFC 3339 timestamp
pageTokenstringNoThe page token to use for pagination

Output

ParameterTypeDescription
commentsarrayList of comments on the file
↳ idstringComment ID
↳ contentstringPlain text content of the comment
↳ htmlContentstringHTML-formatted content of the comment
↳ authorjsonUser who authored the comment
↳ createdTimestringWhen the comment was created
↳ modifiedTimestringWhen the comment was last modified
↳ resolvedbooleanWhether the comment has been resolved
↳ deletedbooleanWhether the comment has been deleted
↳ anchorstringRegion of the document the comment refers to
↳ quotedFileContentjsonThe file content the comment quotes
↳ repliesjsonThreaded replies to the comment
nextPageTokenstringPage token for the next page of comments; absent from the response when the end of the comments list has been reached

Create Google Drive Comment

Add a comment to a file in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to comment on
contentstringYesThe plain text content of the comment
anchorstringNoA region of the document the comment refers to (JSON anchor string)

Output

ParameterTypeDescription
commentjsonThe created comment
↳ idstringComment ID
↳ contentstringPlain text content of the comment
↳ htmlContentstringHTML-formatted content of the comment
↳ authorjsonUser who authored the comment
↳ createdTimestringWhen the comment was created
↳ modifiedTimestringWhen the comment was last modified
↳ resolvedbooleanWhether the comment has been resolved
↳ deletedbooleanWhether the comment has been deleted
↳ anchorstringRegion of the document the comment refers to
↳ quotedFileContentjsonThe file content the comment quotes
↳ repliesjsonThreaded replies to the comment

Delete Google Drive Comment

Delete a comment from a file in Google Drive

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file the comment belongs to
commentIdstringYesThe ID of the comment to delete

Output

ParameterTypeDescription
deletedbooleanWhether the comment was successfully deleted
fileIdstringThe ID of the file
commentIdstringThe ID of the deleted comment

Get Google Drive Info

Get information about the user and their Google Drive (storage quota, capabilities)

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
userjsonInformation about the authenticated user
↳ displayNamestringUser display name
↳ emailAddressstringUser email address
↳ photoLinkstringURL to user profile photo
↳ permissionIdstringUser permission ID
↳ mebooleanWhether this is the authenticated user
storageQuotajsonStorage quota information in bytes
↳ limitstringTotal storage limit in bytes (null for unlimited)
↳ usagestringTotal storage used in bytes
↳ usageInDrivestringStorage used by Drive files in bytes
↳ usageInDriveTrashstringStorage used by trashed files in bytes
canCreateDrivesbooleanWhether user can create shared drives
importFormatsjsonMap of MIME types that can be imported and their target formats
exportFormatsjsonMap of Google Workspace MIME types and their exportable formats
maxUploadSizestringMaximum upload size in bytes

Triggers

A Trigger is a block that starts a workflow when an event happens in this service.

These run on a schedule (polling-based) — they check for new data rather than receiving push notifications.

Google Drive File Trigger

Triggers when files are created, modified, or deleted in Google Drive

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesConnect your Google account to access Google Drive.
folderIdfile-selectorNoOptional: The folder to monitor. Leave empty to monitor all files in Drive.
manualFolderIdstringNoOptional: The folder ID from the Google Drive URL to monitor. Leave empty to monitor all files.
mimeTypeFilterstringNoOptional: Only trigger for specific file types.
eventTypeFilterstringNoOnly trigger for specific change types. Defaults to all changes.
includeSharedDrivesbooleanNoInclude files from shared (team) drives.

Output

ParameterTypeDescription
fileobjectfile output from the tool
↳ idstringGoogle Drive file ID
↳ namestringFile name
↳ mimeTypestringFile MIME type
↳ modifiedTimestringLast modified time (ISO)
↳ createdTimestringFile creation time (ISO)
↳ sizestringFile size in bytes
↳ webViewLinkstringURL to view file in browser
↳ parentsjsonParent folder IDs
↳ lastModifyingUserjsonUser who last modified the file
↳ sharedbooleanWhether file is shared
↳ starredbooleanWhether file is starred
eventTypestringChange type: "created", "modified", or "deleted"
timestampstringEvent timestamp in ISO format