Google Drive
googledriveGoogle Drive is a cloud storage solution for uploading, sharing, and collaborating on files across devices, with robust search and offline access
Acciones disponibles (51)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Add file sharing preferenceGOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCEAcciónModifies sharing permissions for an existing google drive file, granting a specified role to a user, group, domain, or 'anyone'.
GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCEAcciónModifies sharing permissions for an existing google drive file, granting a specified role to a user, group, domain, or 'anyone'.
Parámetros de entrada
rolestringObligatorioPermission role to grant.
typestringObligatorioType of grantee for the permission.
domainstringDomain to grant permission to (e.g., 'example.com'). Required if 'type' is 'domain'.
file_idstringObligatorioUnique identifier of the file to update sharing settings for.
email_addressstringEmail address of the user or group. Required if 'type' is 'user' or 'group'.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Copy fileGOOGLEDRIVE_COPY_FILEAcciónDuplicates an existing file in google drive, identified by its `file id`.
GOOGLEDRIVE_COPY_FILEAcciónDuplicates an existing file in google drive, identified by its `file id`.
Parámetros de entrada
file_idstringObligatorioThe unique identifier for the file on Google Drive that you want to copy. This ID can be retrieved from the file's shareable link or via other Google Drive API calls.
new_titlestringThe title to assign to the new copy of the file. If not provided, the copied file will have the same title as the original, prefixed with 'Copy of '.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create CommentGOOGLEDRIVE_CREATE_COMMENTAcciónTool to create a comment on a file. use when you need to add a new comment to a specific file in google drive.
GOOGLEDRIVE_CREATE_COMMENTAcciónTool to create a comment on a file. use when you need to add a new comment to a specific file in google drive.
Parámetros de entrada
anchorstringA JSON string representing the region of the document to which the comment is anchored (e.g., {'type': 'line', 'line': 12}).
contentstringObligatorioThe plain text content of the comment.
file_idstringObligatorioThe ID of the file.
quoted_file_content_valuestringThe quoted content itself.
quoted_file_content_mime_typestringThe MIME type of the quoted content.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Shared DriveGOOGLEDRIVE_CREATE_DRIVEAcciónTool to create a new shared drive. use when you need to programmatically create a new shared drive for collaboration or storage.
GOOGLEDRIVE_CREATE_DRIVEAcciónTool to create a new shared drive. use when you need to programmatically create a new shared drive for collaboration or storage.
Parámetros de entrada
namestringObligatorioThe name of this shared drive.
hiddenbooleanWhether the shared drive is hidden from default view.
themeIdstringThe ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile.
colorRgbstringThe color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId.
requestIdstringObligatorioAn ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.
backgroundImageFileobjectAn image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create File or FolderGOOGLEDRIVE_CREATE_FILEAcciónCreates a new file or folder with metadata. use to create empty files or folders, or files with content by providing it in the request body (though this action primarily focuses on metadata creation).
GOOGLEDRIVE_CREATE_FILEAcciónCreates a new file or folder with metadata. use to create empty files or folders, or files with content by providing it in the request body (though this action primarily focuses on metadata creation).
Parámetros de entrada
namestringThe name of the file.
fieldsstringA comma-separated list of fields to include in the response.
parentsstring[]The IDs of parent folders.
starredbooleanWhether the user has starred the file.
mimeTypestringThe MIME type of the file.
descriptionstringA short description of the file.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a File from TextGOOGLEDRIVE_CREATE_FILE_FROM_TEXTAcciónCreates a new file in google drive from provided text content (up to 10mb), supporting various formats including automatic conversion to google workspace types.
GOOGLEDRIVE_CREATE_FILE_FROM_TEXTAcciónCreates a new file in google drive from provided text content (up to 10mb), supporting various formats including automatic conversion to google workspace types.
Parámetros de entrada
file_namestringObligatorioDesired name for the new file on Google Drive.
mime_typestringMIME type for the new file, determining how Google Drive interprets its content.
parent_idstringID of the parent folder in Google Drive; if omitted, the file is created in the root of 'My Drive'.
text_contentstringObligatorioPlain text content to be written into the new file.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a folderGOOGLEDRIVE_CREATE_FOLDERAcciónCreates a new folder in google drive, optionally within a parent folder specified by its id or name; if a parent name is provided but not found, the action will fail.
GOOGLEDRIVE_CREATE_FOLDERAcciónCreates a new folder in google drive, optionally within a parent folder specified by its id or name; if a parent name is provided but not found, the action will fail.
Parámetros de entrada
parent_idstringID or name of the parent folder. If a name is provided, the action attempts to find it. If an ID is provided, it must be a valid Google Drive folder ID. If omitted, the folder is created in the Drive root.
folder_namestringObligatorioName for the new folder.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ReplyGOOGLEDRIVE_CREATE_REPLYAcciónTool to create a reply to a comment in google drive. use when you need to respond to an existing comment on a file.
GOOGLEDRIVE_CREATE_REPLYAcciónTool to create a reply to a comment in google drive. use when you need to respond to an existing comment on a file.
Parámetros de entrada
actionstringThe action the reply performed to the parent comment. Valid values are: resolve, reopen.
fieldsstringSelector specifying which fields to include in a partial response.
contentstringObligatorioThe plain text content of the reply. HTML content is not supported.
file_idstringObligatorioThe ID of the file.
comment_idstringObligatorioThe ID of the comment.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Shortcut to File/FolderGOOGLEDRIVE_CREATE_SHORTCUT_TO_FILEAcciónTool to create a shortcut to a file or folder in google drive. use when you need to link to an existing drive item from another location without duplicating it.
GOOGLEDRIVE_CREATE_SHORTCUT_TO_FILEAcciónTool to create a shortcut to a file or folder in google drive. use when you need to link to an existing drive item from another location without duplicating it.
Parámetros de entrada
namestringObligatorioThe name of the shortcut.
target_idstringObligatorioThe ID of the file or folder that this shortcut points to.
includeLabelsstringA comma-separated list of IDs of labels to include in the labelInfo part of the response.
target_mime_typestringThe MIME type of the target file or folder. While optional, providing it can be helpful.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives. Recommended to set to true if interacting with shared drives.
keepRevisionForeverbooleanWhether to set the 'keepForever' field in the new head revision.
ignoreDefaultVisibilitybooleanWhether to ignore the domain's default visibility settings for the created file.
includePermissionsForViewstringSpecifies which additional view's permissions to include in the response. Only 'published' is supported.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete CommentGOOGLEDRIVE_DELETE_COMMENTAcciónDeletes a comment from a file. use when you need to remove a specific comment from a google drive file.
GOOGLEDRIVE_DELETE_COMMENTAcciónDeletes a comment from a file. use when you need to remove a specific comment from a google drive file.
Parámetros de entrada
file_idstringObligatorioThe ID of the file.
comment_idstringObligatorioThe ID of the comment.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Shared DriveGOOGLEDRIVE_DELETE_DRIVEAcciónTool to permanently delete a shared drive. use when you need to remove a shared drive and its contents (if specified).
GOOGLEDRIVE_DELETE_DRIVEAcciónTool to permanently delete a shared drive. use when you need to remove a shared drive and its contents (if specified).
Parámetros de entrada
driveIdstringObligatorioThe ID of the shared drive.
allowItemDeletionbooleanWhether any items inside the shared drive should also be deleted. This option is only supported when `useDomainAdminAccess` is also set to `true`.
useDomainAdminAccessbooleanIssue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete PermissionGOOGLEDRIVE_DELETE_PERMISSIONAcciónDeletes a permission from a file by permission id. use when you need to revoke access for a specific user or group from a file.
GOOGLEDRIVE_DELETE_PERMISSIONAcciónDeletes a permission from a file by permission id. use when you need to revoke access for a specific user or group from a file.
Parámetros de entrada
file_idstringObligatorioThe ID of the file or shared drive.
permission_idstringObligatorioThe ID of the permission.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives.
useDomainAdminAccessbooleanIssue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete ReplyGOOGLEDRIVE_DELETE_REPLYAcciónTool to delete a specific reply by reply id. use when you need to remove a reply from a comment on a file.
GOOGLEDRIVE_DELETE_REPLYAcciónTool to delete a specific reply by reply id. use when you need to remove a reply from a comment on a file.
Parámetros de entrada
file_idstringObligatorioThe ID of the file.
reply_idstringObligatorioThe ID of the reply.
comment_idstringObligatorioThe ID of the comment.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download a file from Google DriveGOOGLEDRIVE_DOWNLOAD_FILEAcciónDownloads a file from google drive by its id. for google workspace documents (docs, sheets, slides), optionally exports to a specified `mime type`. for other file types, downloads in their native format regardless of mime type.
GOOGLEDRIVE_DOWNLOAD_FILEAcciónDownloads a file from google drive by its id. for google workspace documents (docs, sheets, slides), optionally exports to a specified `mime type`. for other file types, downloads in their native format regardless of mime type.
Parámetros de entrada
file_idstringObligatorioThe unique identifier of the file to be downloaded from Google Drive. This ID can typically be found in the file's URL in Google Drive or obtained from API calls that list files.
mime_typestringenumTarget MIME type for exporting Google Workspace documents (e.g., Google Doc, Sheet, Slide). Supported export formats vary by file type; e.g., text/plain is only supported for Google Docs, not Sheets or Slides. This parameter is automatically ignored for non-Google Workspace files, which are downloaded in their native format. Only specify this when you want to export a Google Workspace document to a different format (e.g., export Google Doc to PDF).
application/vnd.openxmlformats-officedocument.wordprocessingml.documentapplication/vnd.oasis.opendocument.textapplication/rtfapplication/pdftext/plainapplication/zipapplication/epub+ziptext/markdownapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/x-vnd.oasis.opendocument.spreadsheettext/csvtext/tab-separated-values+7
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Edit FileGOOGLEDRIVE_EDIT_FILEAcciónUpdates an existing google drive file by overwriting its entire content with new text (max 10mb).
GOOGLEDRIVE_EDIT_FILEAcciónUpdates an existing google drive file by overwriting its entire content with new text (max 10mb).
Parámetros de entrada
contentstringObligatorioNew textual content to overwrite the existing file; will be UTF-8 encoded for upload.
file_idstringObligatorioIdentifier of the Google Drive file to update.
mime_typestringMIME type of the 'content' being uploaded; must accurately represent its format.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Empty TrashGOOGLEDRIVE_EMPTY_TRASHAcciónTool to permanently delete all of the user's trashed files. use when you want to empty the trash in google drive.
GOOGLEDRIVE_EMPTY_TRASHAcciónTool to permanently delete all of the user's trashed files. use when you want to empty the trash in google drive.
Parámetros de entrada
driveIdstringIf set, empties the trash of the provided shared drive. This parameter is ignored if the item is not in a shared drive.
enforceSingleParentbooleanDeprecated: If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. This parameter is ignored if the item is not in a shared drive.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Modify File LabelsGOOGLEDRIVE_FILES_MODIFY_LABELSAcciónModifies the set of labels applied to a file. returns a list of the labels that were added or modified. use when you need to programmatically change labels on a google drive file, such as adding, updating, or removing them.
GOOGLEDRIVE_FILES_MODIFY_LABELSAcciónModifies the set of labels applied to a file. returns a list of the labels that were added or modified. use when you need to programmatically change labels on a google drive file, such as adding, updating, or removing them.
Parámetros de entrada
kindstringThis is always drive#modifyLabelsRequest.
file_idstringObligatorioThe ID of the file.
label_modificationsobject[]ObligatorioThe list of modifications to apply to the labels on the file.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Find fileGOOGLEDRIVE_FIND_FILEAcciónTool to list or search for files and folders in google drive. use when you need to find specific files based on query criteria or list contents of a drive/folder.
GOOGLEDRIVE_FIND_FILEAcciónTool to list or search for files and folders in google drive. use when you need to find specific files based on query criteria or list contents of a drive/folder.
Parámetros de entrada
qstringA query for filtering the file results. See Google Drive API documentation for query syntax. Example: \"name contains 'report' and mimeType = 'application/pdf'\"
fieldsstringSelector specifying which fields to include in a partial response. Use '*' for all fields or a comma-separated list, e.g., 'nextPageToken,files(id,name,mimeType)'.
spacesstringA comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'.
corporastringenumCorpora to query. 'user' for user's personal files, 'drive' for files in a specific shared drive (requires 'driveId'), 'domain' for files shared with the domain, 'allDrives' for all drives the user has access to.
userdrivedomainallDrivesdriveIdstringID of the shared drive to search. Required if 'corpora' is 'drive'.
orderBystringA comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example: 'modifiedTime desc,name'.
pageSizeintegerThe maximum number of files to return per page.
pageTokenstringThe token for continuing a previous list request on the next page.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives. If 'includeItemsFromAllDrives' is true, this must also be true.
includeItemsFromAllDrivesbooleanWhether both My Drive and shared drive items should be included in results. If true, 'supportsAllDrives' should also be true.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Find folderGOOGLEDRIVE_FIND_FOLDERAcciónTool to find a folder in google drive by its name and optionally a parent folder. use when you need to locate a specific folder to perform further actions like creating files in it or listing its contents.
GOOGLEDRIVE_FIND_FOLDERAcciónTool to find a folder in google drive by its name and optionally a parent folder. use when you need to locate a specific folder to perform further actions like creating files in it or listing its contents.
Parámetros de entrada
starredbooleanSet to true to search for folders that are starred, or false for those that are not.
name_exactstringThe exact name of the folder to search for. This search is case-sensitive.
name_containsstringA substring to search for within folder names. This search is case-insensitive.
modified_afterstringSearch for folders modified after a specific date and time. The timestamp must be in RFC 3339 format (e.g., '2023-01-15T10:00:00Z' or '2023-01-15T10:00:00.000Z').
name_not_containsstringA substring to exclude from folder names. Folders with names containing this substring will not be returned. This search is case-insensitive.
full_text_containsstringA string to search for within the full text content of files within folders (if applicable and supported by Drive for the folder type or its contents). This search is case-insensitive.
full_text_not_containsstringA string to exclude from the full text content of files within folders. This search is case-insensitive.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate File IDsGOOGLEDRIVE_GENERATE_IDSAcciónGenerates a set of file ids which can be provided in create or copy requests. use when you need to pre-allocate ids for new files or copies.
GOOGLEDRIVE_GENERATE_IDSAcciónGenerates a set of file ids which can be provided in create or copy requests. use when you need to pre-allocate ids for new files or copies.
Parámetros de entrada
typestringThe type of items for which the IDs can be used. For example, 'files' or 'shortcuts'.
countintegerThe number of IDs to return. Value must be between 1 and 1000, inclusive.
spacestringThe space in which the IDs can be used. Supported values are 'drive' and 'appDataFolder'.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get aboutGOOGLEDRIVE_GET_ABOUTAcciónTool to retrieve information about the user, the user's drive, and system capabilities. use when you need to check storage quotas, user details, or supported import/export formats.
GOOGLEDRIVE_GET_ABOUTAcciónTool to retrieve information about the user, the user's drive, and system capabilities. use when you need to check storage quotas, user details, or supported import/export formats.
Parámetros de entrada
fieldsstringA comma-separated list of fields to include in the response. Use `*` to include all fields.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Changes Start Page TokenGOOGLEDRIVE_GET_CHANGES_START_PAGE_TOKENAcciónTool to get the starting pagetoken for listing future changes in google drive. use this when you need to track changes to files and folders.
GOOGLEDRIVE_GET_CHANGES_START_PAGE_TOKENAcciónTool to get the starting pagetoken for listing future changes in google drive. use this when you need to track changes to files and folders.
Parámetros de entrada
driveIdstringThe ID of the shared drive for which the starting pageToken for listing future changes from that shared drive will be returned.
teamDriveIdstringDeprecated: Use driveId instead.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives. Defaults to false.
supportsTeamDrivesbooleanDeprecated: Use supportsAllDrives instead.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CommentGOOGLEDRIVE_GET_COMMENTAcciónTool to get a comment by id. use when you need to retrieve a specific comment from a google drive file and have both the file id and comment id.
GOOGLEDRIVE_GET_COMMENTAcciónTool to get a comment by id. use when you need to retrieve a specific comment from a google drive file and have both the file id and comment id.
Parámetros de entrada
fileIdstringObligatorioThe ID of the file.
commentIdstringObligatorioThe ID of the comment.
includeDeletedbooleanWhether to return deleted comments. Deleted comments will not include their original content.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Shared DriveGOOGLEDRIVE_GET_DRIVEAcciónTool to get a shared drive by id. use when you need to retrieve information about a specific shared drive.
GOOGLEDRIVE_GET_DRIVEAcciónTool to get a shared drive by id. use when you need to retrieve information about a specific shared drive.
Parámetros de entrada
drive_idstringObligatorioThe ID of the shared drive.
use_domain_admin_accessbooleanIssue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get File MetadataGOOGLEDRIVE_GET_FILE_METADATAAcciónTool to get a file's metadata by id. use when you need to retrieve the metadata for a specific file in google drive.
GOOGLEDRIVE_GET_FILE_METADATAAcciónTool to get a file's metadata by id. use when you need to retrieve the metadata for a specific file in google drive.
Parámetros de entrada
fileIdstringObligatorioThe ID of the file.
includeLabelsstringA comma-separated list of IDs of labels to include in the labelInfo part of the response.
acknowledgeAbusebooleanWhether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the alt parameter is set to media and the user is the owner of the file or an organizer of the shared drive in which the file resides.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives. This parameter will default to false.
includePermissionsForViewstringSpecifies which additional view's permissions to include in the response. Only 'published' is supported.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get PermissionGOOGLEDRIVE_GET_PERMISSIONAcciónGets a permission by id. use this tool to retrieve a specific permission for a file or shared drive.
GOOGLEDRIVE_GET_PERMISSIONAcciónGets a permission by id. use this tool to retrieve a specific permission for a file or shared drive.
Parámetros de entrada
file_idstringObligatorioThe ID of the file.
permission_idstringObligatorioThe ID of the permission.
supports_all_drivesbooleanWhether the requesting application supports both My Drives and shared drives.
use_domain_admin_accessbooleanIssue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ReplyGOOGLEDRIVE_GET_REPLYAcciónTool to get a specific reply to a comment on a file. use when you need to retrieve the details of a particular reply.
GOOGLEDRIVE_GET_REPLYAcciónTool to get a specific reply to a comment on a file. use when you need to retrieve the details of a particular reply.
Parámetros de entrada
fileIdstringObligatorioThe ID of the file.
replyIdstringObligatorioThe ID of the reply.
commentIdstringObligatorioThe ID of the comment.
includeDeletedbooleanWhether to return deleted replies. Deleted replies will not include their original content.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get RevisionGOOGLEDRIVE_GET_REVISIONAcciónTool to get a specific revision's metadata by revision id. use when you need to retrieve information about a particular version of a file.
GOOGLEDRIVE_GET_REVISIONAcciónTool to get a specific revision's metadata by revision id. use when you need to retrieve information about a particular version of a file.
Parámetros de entrada
file_idstringObligatorioThe ID of the file.
revision_idstringObligatorioThe ID of the revision.
acknowledge_abusebooleanWhether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the alt parameter is set to media and the user is the owner of the file or an organizer of the shared drive in which the file resides.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete folder or fileGOOGLEDRIVE_GOOGLE_DRIVE_DELETE_FOLDER_OR_FILE_ACTIONAcciónTool to delete a file or folder in google drive. use when you need to permanently remove a specific file or folder using its id. note: this action is irreversible.
GOOGLEDRIVE_GOOGLE_DRIVE_DELETE_FOLDER_OR_FILE_ACTIONAcciónTool to delete a file or folder in google drive. use when you need to permanently remove a specific file or folder using its id. note: this action is irreversible.
Parámetros de entrada
fileIdstringObligatorioThe ID of the file or folder to delete. This is a required field.
supportsAllDrivesbooleanWhether the application supports both My Drives and shared drives. If false or unspecified, the file is attempted to be deleted from the user's My Drive. If true, the item will be deleted from shared drives as well if necessary.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Hide Shared DriveGOOGLEDRIVE_HIDE_DRIVEAcciónTool to hide a shared drive from the default view. use when you want to remove a shared drive from the user's main google drive interface without deleting it.
GOOGLEDRIVE_HIDE_DRIVEAcciónTool to hide a shared drive from the default view. use when you want to remove a shared drive from the user's main google drive interface without deleting it.
Parámetros de entrada
drive_idstringObligatorioThe ID of the shared drive.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ChangesGOOGLEDRIVE_LIST_CHANGESAcciónTool to list the changes for a user or shared drive. use when you need to track modifications to files and folders, such as creations, deletions, or permission changes. this action requires a `pagetoken` which can be initially obtained using the `get changes start page token` action or from a previous `list changes` response.
GOOGLEDRIVE_LIST_CHANGESAcciónTool to list the changes for a user or shared drive. use when you need to track modifications to files and folders, such as creations, deletions, or permission changes. this action requires a `pagetoken` which can be initially obtained using the `get changes start page token` action or from a previous `list changes` response.
Parámetros de entrada
spacesstringA comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.
driveIdstringThe shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
pageSizeintegerThe maximum number of changes to return per page.
pageTokenstringObligatorioThe token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.
includeLabelsstringA comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
includeRemovedbooleanWhether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
restrictToMyDrivebooleanWhether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives.
includeCorpusRemovalsbooleanWhether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
includeItemsFromAllDrivesbooleanWhether both My Drive and shared drive items should be included in results.
includePermissionsForViewstringSpecifies which additional view's permissions to include in the response. Only 'published' is supported.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CommentsGOOGLEDRIVE_LIST_COMMENTSAcciónTool to list all comments for a file in google drive. use when you need to retrieve comments associated with a specific file.
GOOGLEDRIVE_LIST_COMMENTSAcciónTool to list all comments for a file in google drive. use when you need to retrieve comments associated with a specific file.
Parámetros de entrada
fieldsstringA comma-separated list of fields to include in the response. Use `*` to include all fields.
fileIdstringObligatorioThe ID of the file.
pageSizeintegerThe maximum number of comments to return per page.
pageTokenstringThe token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
includeDeletedbooleanWhether to include deleted comments. Deleted comments will not include their original content.
startModifiedTimestringThe minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List File LabelsGOOGLEDRIVE_LIST_FILE_LABELSAcciónTool to list the labels on a file. use when you need to retrieve all labels associated with a specific file in google drive.
GOOGLEDRIVE_LIST_FILE_LABELSAcciónTool to list the labels on a file. use when you need to retrieve all labels associated with a specific file in google drive.
Parámetros de entrada
file_idstringObligatorioThe ID of the file.
page_tokenstringToken to retrieve a specific page of results.
max_resultsintegerThe maximum number of labels to return per page. Default is 100.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Files and FoldersGOOGLEDRIVE_LIST_FILESAcciónTool to list a user's files and folders in google drive. use this to search or browse for files and folders based on various criteria.
GOOGLEDRIVE_LIST_FILESAcciónTool to list a user's files and folders in google drive. use this to search or browse for files and folders based on various criteria.
Parámetros de entrada
qstringA query string for filtering the file results. Supports operators like 'and', 'or', 'not', and can filter on fields like 'name', 'mimeType', 'modifiedTime', 'starred', 'trashed'. Example: "name contains 'important' and mimeType = 'application/vnd.google-apps.folder'".
fieldsstringSelector specifying which fields to include in a partial response. This can be used to retrieve only specific file metadata, improving performance. Example: 'nextPageToken, files(id, name, mimeType, modifiedTime)'
spacesstringA comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'. 'drive' represents files in My Drive and shared drives, while 'appDataFolder' represents the application's private data folder.
corporastringSpecifies the bodies of items (files/documents) to which the query applies. Supported values are 'user', 'domain', 'drive', and 'allDrives'. It's generally more efficient to use 'user' or 'drive' instead of 'allDrives'. Defaults to 'user'.
driveIdstringThe ID of the shared drive to search. This is used when `corpora` is set to 'drive'.
orderBystringA comma-separated list of sort keys. Valid keys include 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', 'viewedByMeTime'. Each key sorts in ascending order by default, but can be reversed with the 'desc' modifier (e.g., 'modifiedTime desc').
folderIdstringID of a specific folder to list files from. This is a convenience parameter that automatically adds "'folder_id' in parents" to the query. Cannot be used together with a custom 'q' parameter.
pageSizeintegerThe maximum number of files to return per page. The value must be between 1 and 1000, inclusive. Defaults to 100.
pageTokenstringThe token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
includeLabelsstringA comma-separated list of label IDs to include in the `labelInfo` part of the response for each file.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives. Defaults to false. If true, then `includeItemsFromAllDrives` can be used to extend the search to all drives.
includeItemsFromAllDrivesbooleanWhether to include items from both My Drive and shared drives. This is relevant when `corpora` is 'user' or 'domain'. Defaults to false.
includePermissionsForViewstringSpecifies which additional view's permissions to include in the response. Currently, only 'published' is supported, which includes permissions for files with published content.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List PermissionsGOOGLEDRIVE_LIST_PERMISSIONSAcciónTool to list a file's permissions. use when you need to retrieve all permissions associated with a specific file or shared drive.
GOOGLEDRIVE_LIST_PERMISSIONSAcciónTool to list a file's permissions. use when you need to retrieve all permissions associated with a specific file or shared drive.
Parámetros de entrada
fileIdstringObligatorioThe ID of the file or shared drive.
pageSizeintegerThe maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned.
pageTokenstringThe token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives. Default: false
useDomainAdminAccessbooleanIssue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
includePermissionsForViewstringSpecifies which additional view's permissions to include in the response. Only 'published' is supported.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Replies to CommentGOOGLEDRIVE_LIST_REPLIES_TO_COMMENTAcciónTool to list replies to a comment in google drive. use this when you need to retrieve all replies associated with a specific comment on a file.
GOOGLEDRIVE_LIST_REPLIES_TO_COMMENTAcciónTool to list replies to a comment in google drive. use this when you need to retrieve all replies associated with a specific comment on a file.
Parámetros de entrada
fieldsstringSelector specifying which fields to include in a partial response. Use '*' for all fields or e.g. 'replies(id,content),nextPageToken'
file_idstringObligatorioThe ID of the file.
page_sizeintegerThe maximum number of replies to return per page.
comment_idstringObligatorioThe ID of the comment.
page_tokenstringThe token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
include_deletedbooleanWhether to include deleted replies. Deleted replies will not include their original content.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List File RevisionsGOOGLEDRIVE_LIST_REVISIONSAcciónTool to list a file's revisions. use when you need to retrieve the revision history of a specific file in google drive.
GOOGLEDRIVE_LIST_REVISIONSAcciónTool to list a file's revisions. use when you need to retrieve the revision history of a specific file in google drive.
Parámetros de entrada
fileIdstringObligatorioThe ID of the file.
pageSizeintegerThe maximum number of revisions to return per page.
pageTokenstringThe token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives. Defaults to false.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Shared DrivesGOOGLEDRIVE_LIST_SHARED_DRIVESAcciónTool to list the user's shared drives. use when you need to get a list of all shared drives accessible to the authenticated user.
GOOGLEDRIVE_LIST_SHARED_DRIVESAcciónTool to list the user's shared drives. use when you need to get a list of all shared drives accessible to the authenticated user.
Parámetros de entrada
qstringQuery string for searching shared drives.
pageSizeintegerMaximum number of shared drives to return per page.
pageTokenstringPage token for shared drives.
useDomainAdminAccessbooleanIssue the request as a domain administrator. If set to true, then all shared drives of the domain in which the requester is an administrator are returned.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Move FileGOOGLEDRIVE_MOVE_FILEAcciónTool to move a file from one folder to another in google drive. use when you need to reorganize files by changing their parent folder(s).
GOOGLEDRIVE_MOVE_FILEAcciónTool to move a file from one folder to another in google drive. use when you need to reorganize files by changing their parent folder(s).
Parámetros de entrada
file_idstringObligatorioThe ID of the file to move.
add_parentsstringA comma-separated list of parent folder IDs to add the file to. Use this to specify the destination folder.
ocr_languagestringA language hint for OCR processing during image import (ISO 639-1 code).
include_labelsstringA comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
remove_parentsstringA comma-separated list of parent folder IDs to remove the file from. Use this to specify the source folder.
supports_all_drivesbooleanWhether the requesting application supports both My Drives and shared drives. Set to true if moving files to or from a shared drive.
keep_revision_foreverbooleanWhether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.
include_permissions_for_viewstringSpecifies which additional view's permissions to include in the response. Only 'published' is supported.
use_content_as_indexable_textbooleanWhether to use the uploaded content as indexable text.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Export or download a fileGOOGLEDRIVE_PARSE_FILEAcciónDeprecated: exports google workspace files (max 10mb) to a specified format using `mime type`, or downloads other file types; use `googledrive download file` instead.
GOOGLEDRIVE_PARSE_FILEAcciónDeprecated: exports google workspace files (max 10mb) to a specified format using `mime type`, or downloads other file types; use `googledrive download file` instead.
Parámetros de entrada
file_idstringObligatorioThe unique ID of the file stored in Google Drive that you want to export or download.
mime_typestringenumTarget MIME type for exporting Google Workspace documents (e.g., Docs, Sheets) to a different format (e.g., PDF, DOCX). Omit for direct download of non-Workspace files or if no conversion is needed for Workspace files.
application/vnd.openxmlformats-officedocument.wordprocessingml.documentapplication/vnd.oasis.opendocument.textapplication/rtfapplication/pdftext/plainapplication/zipapplication/epub+ziptext/markdownapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/x-vnd.oasis.opendocument.spreadsheettext/csvtext/tab-separated-values+7
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Stop Watch ChannelGOOGLEDRIVE_STOP_WATCH_CHANNELAcciónTool to stop watching resources through a specified channel. use this when you want to stop receiving notifications for a previously established watch.
GOOGLEDRIVE_STOP_WATCH_CHANNELAcciónTool to stop watching resources through a specified channel. use this when you want to stop receiving notifications for a previously established watch.
Parámetros de entrada
idstringObligatorioThe ID of the channel to stop.
kindstringIdentifies this as a notification channel used to watch for changes to a resource.
tokenstringAn arbitrary string delivered to the target address with each notification delivered over this channel.
paramsobjectAdditional parameters controlling delivery channel behavior.
addressstringThe address where notifications are delivered for this channel.
payloadbooleanA Boolean value to indicate whether payload is wanted.
expirationstringDate and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds.
resourceIdstringObligatorioThe ID of the resource being watched.
channelTypestringThe type of delivery mechanism used for this channel. Valid values are "web_hook" or "webhook".
resourceUristringA version-specific identifier for the watched resource.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Unhide Shared DriveGOOGLEDRIVE_UNHIDE_DRIVEAcciónTool to unhide a shared drive. use when you need to restore a shared drive to the default view.
GOOGLEDRIVE_UNHIDE_DRIVEAcciónTool to unhide a shared drive. use when you need to restore a shared drive to the default view.
Parámetros de entrada
driveIdstringObligatorioThe ID of the shared drive.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Untrash FileGOOGLEDRIVE_UNTRASH_FILEAcciónTool to restore a file from the trash. use when you need to recover a deleted file. this action updates the file's metadata to set the 'trashed' property to false.
GOOGLEDRIVE_UNTRASH_FILEAcciónTool to restore a file from the trash. use when you need to recover a deleted file. this action updates the file's metadata to set the 'trashed' property to false.
Parámetros de entrada
file_idstringObligatorioThe ID of the file to untrash.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update CommentGOOGLEDRIVE_UPDATE_COMMENTAcciónTool to update an existing comment on a google drive file. use when you need to change the content or status (e.g., resolve) of a comment.
GOOGLEDRIVE_UPDATE_COMMENTAcciónTool to update an existing comment on a google drive file. use when you need to change the content or status (e.g., resolve) of a comment.
Parámetros de entrada
fieldsstringSelector specifying which fields to include in a partial response. The API documentation states this is required. If not specified by the user, this action defaults to '*' to retrieve all fields, ensuring the API requirement is met. Example: 'id,content,resolved'.
contentstringThe plain text content of the comment. This field is used to update the comment's text. If not provided, the existing content will be retained unless 'resolved' is being updated.
file_idstringObligatorioThe ID of the file.
resolvedbooleanWhether the comment has been resolved. This can be used to mark a comment as resolved or reopen it.
comment_idstringObligatorioThe ID of the comment to update.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Shared DriveGOOGLEDRIVE_UPDATE_DRIVEAcciónTool to update the metadata for a shared drive. use when you need to modify properties like the name, theme, background image, or restrictions of a shared drive.
GOOGLEDRIVE_UPDATE_DRIVEAcciónTool to update the metadata for a shared drive. use when you need to modify properties like the name, theme, background image, or restrictions of a shared drive.
Parámetros de entrada
namestringThe new name for the shared drive.
hiddenbooleanWhether the shared drive is hidden from the default view.
driveIdstringObligatorioThe ID of the shared drive to update.
themeIdstringThe ID of a theme to apply to the shared drive. Cannot be set if colorRgb or backgroundImageFile are set.
colorRgbstringThe color of this shared drive as an RGB hex string (e.g., "#FF0000"). Cannot be set if themeId is set.
restrictionsobjectA set of restrictions to apply to the shared drive.
backgroundImageFileobjectAn image file and cropping parameters for the shared drive's background. Cannot be set if themeId is set.
useDomainAdminAccessbooleanIf set to true, the request is issued as a domain administrator.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update File (Metadata)GOOGLEDRIVE_UPDATE_FILE_PUTAcciónUpdates file metadata. uses patch semantics (partial update) as per google drive api v3. use this tool to modify attributes of an existing file like its name, description, or parent folders. note: this action currently supports metadata updates only. file content updates require multipart/related upload and are not yet implemented.
GOOGLEDRIVE_UPDATE_FILE_PUTAcciónUpdates file metadata. uses patch semantics (partial update) as per google drive api v3. use this tool to modify attributes of an existing file like its name, description, or parent folders. note: this action currently supports metadata updates only. file content updates require multipart/related upload and are not yet implemented.
Parámetros de entrada
namestringThe name of the file.
file_idstringObligatorioThe ID of the file to update.
starredbooleanWhether the user has starred the file.
mime_typestringThe MIME type of the file. Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
add_parentsstringA comma-separated list of parent IDs to add.
descriptionstringA short description of the file.
ocr_languagestringA language hint for OCR processing during image import (ISO 639-1 code).
remove_parentsstringA comma-separated list of parent IDs to remove.
writers_can_sharebooleanWhether writers can share the document with other users.
supports_all_drivesbooleanWhether the requesting application supports both My Drives and shared drives. This parameter will always be true by default if the application is configured to support shared drives.
keep_revision_foreverbooleanWhether to set this revision of the file to be kept forever. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
use_domain_admin_accessbooleanWhether the requesting application is using domain-wide delegation to access content belonging to a user in a different domain. This is only applicable to files with binary content in Google Drive.
viewers_can_copy_contentbooleanWhether viewers are prevented from copying content of the file.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update File Revision MetadataGOOGLEDRIVE_UPDATE_FILE_REVISION_METADATAAcciónUpdates metadata of a file revision (e.g., keepforever, publish). use this tool to modify the metadata of a specific revision of a file in google drive.
GOOGLEDRIVE_UPDATE_FILE_REVISION_METADATAAcciónUpdates metadata of a file revision (e.g., keepforever, publish). use this tool to modify the metadata of a specific revision of a file in google drive.
Parámetros de entrada
file_idstringObligatorioThe ID of the file.
publishedbooleanWhether this revision is published. This is only applicable to Docs Editors files.
publishAutobooleanWhether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files.
revision_idstringObligatorioThe ID of the revision.
keep_foreverbooleanWhether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive.
publishedOutsideDomainbooleanWhether this revision is published outside the domain. This is only applicable to Docs Editors files.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update PermissionGOOGLEDRIVE_UPDATE_PERMISSIONAcciónTool to update a permission with patch semantics. use when you need to modify an existing permission for a file or shared drive.
GOOGLEDRIVE_UPDATE_PERMISSIONAcciónTool to update a permission with patch semantics. use when you need to modify an existing permission for a file or shared drive.
Parámetros de entrada
fileIdstringObligatorioThe ID of the file or shared drive.
permissionobjectObligatorioThe permission resource to update. Only 'role' and 'expirationTime' can be updated.
permissionIdstringObligatorioThe ID of the permission.
removeExpirationbooleanWhether to remove the expiration date.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives.
transferOwnershipbooleanWhether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect when set to true.
useDomainAdminAccessbooleanIssue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
enforceExpansiveAccessbooleanWhether the request should enforce expansive access rules. This field is deprecated, it is recommended to use `permissionDetails` instead.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update ReplyGOOGLEDRIVE_UPDATE_REPLYAcciónTool to update a reply to a comment on a google drive file. use when you need to modify the content of an existing reply.
GOOGLEDRIVE_UPDATE_REPLYAcciónTool to update a reply to a comment on a google drive file. use when you need to modify the content of an existing reply.
Parámetros de entrada
fieldsstringObligatorioSelector specifying which fields to include in a partial response.
contentstringObligatorioThe new plain text content of the reply.
file_idstringObligatorioThe ID of the file.
reply_idstringObligatorioThe ID of the reply.
comment_idstringObligatorioThe ID of the comment.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload FileGOOGLEDRIVE_UPLOAD_FILEAcciónUploads a file (max 5mb) to google drive, moving it to a specified folder if a valid folder id is provided, otherwise uploads to root.
GOOGLEDRIVE_UPLOAD_FILEAcciónUploads a file (max 5mb) to google drive, moving it to a specified folder if a valid folder id is provided, otherwise uploads to root.
Parámetros de entrada
file_to_uploadobjectObligatorioFile to upload to Google Drive (max 5MB), identified by its name or path.
folder_to_upload_tostringOptional ID of the target Google Drive folder; can be obtained using 'Find Folder' or similar actions.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Watch Drive ChangesGOOGLEDRIVE_WATCH_CHANGESAcciónTool to subscribe to changes for a user or shared drive in google drive. use when you need to monitor a google drive for modifications and receive notifications at a specified webhook url.
GOOGLEDRIVE_WATCH_CHANGESAcciónTool to subscribe to changes for a user or shared drive in google drive. use when you need to monitor a google drive for modifications and receive notifications at a specified webhook url.
Parámetros de entrada
idstringObligatorioA unique string that identifies this channel. UUIDs are recommended.
typestringObligatorioThe type of delivery mechanism for notifications (e.g., 'web_hook').
tokenstringAn arbitrary string that will be delivered with each notification. Can be used for verification.
paramsobjectOptional parameters for the notification channel. Example: {"ttl": "3600"} for a 1-hour time-to-live (actual support depends on Google API).
spacesstringA comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.
addressstringObligatoriouriThe URL where notifications are to be delivered.
drive_idstringThe shared drive from which changes will be returned. If specified, change IDs will be specific to the shared drive.
page_sizeintegerThe maximum number of changes to return per page.
expirationintegerTimestamp in milliseconds since the epoch for when the channel should expire. If not set, channel may not expire or have a default expiration.
page_tokenstringThe token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.
include_labelsstringA comma-separated list of IDs of labels to include in the labelInfo part of the response.
include_removedbooleanWhether to include changes indicating that items have been removed from the list of changes (e.g., by deletion or loss of access).
supports_all_drivesbooleanWhether the requesting application supports both My Drives and shared drives. Recommended to set to true if driveId is used or if interactions with shared drives are expected.
restrict_to_my_drivebooleanWhether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files like those in the Application Data folder or shared files not added to My Drive.
include_corpus_removalsbooleanWhether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes.
include_permissions_for_viewstringSpecifies which additional view's permissions to include in the response. Only 'published' is supported.
include_items_from_all_drivesbooleanWhether both My Drive and shared drive items should be included in results.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Triggers (7)
Los triggers son eventos externos que pueden iniciar un flujo en tus agentes (ej: nuevo email, mensaje recibido, registro creado).
Comment Added (Docs/Sheets/Slides)GOOGLEDRIVE_COMMENT_ADDED_TRIGGERTriggerTriggers when a new comment is added to Google Docs, Sheets, or Slides.
GOOGLEDRIVE_COMMENT_ADDED_TRIGGERTriggerTriggers when a new comment is added to Google Docs, Sheets, or Slides.
Configuración
file_idstringIf provided, monitor comments only for this specific file ID. If omitted, the trigger scans recent Docs/Sheets/Slides files for new comments.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_filesintegerMaximum number of recent Docs/Sheets/Slides files to inspect in each poll when no file ID is specified. Values above 100 are clamped at runtime to protect Drive quota — comments.list is a per-file fanout.
Payload del evento
comment_idstringObligatorioThe ID of the comment
comment_textstringThe plain text content of the comment
commenterobjectInformation about the commenter (displayName, permissionId, photoLink, me).
created_timestringThe time the comment was created (RFC 3339)
file_idstringObligatorioThe ID of the file on which the comment was added
Instrucciones
This trigger monitors Google Docs, Sheets, and Slides for new comments. Provide a specific File ID to monitor a particular document, or leave it empty to scan a bounded set of recent Docs/Sheets/Slides files each poll. The trigger only fires for newly created root comments — it does not fire on replies or edits to existing comments. The cursor is provider-derived from `comment.createdTime`, not local wall clock. On the first run the trigger initializes state and does not emit past comments.
File CreatedGOOGLEDRIVE_FILE_CREATED_TRIGGERTriggerTriggers when a new file is created in Google Drive.
GOOGLEDRIVE_FILE_CREATED_TRIGGERTriggerTriggers when a new file is created in Google Drive.
Configuración
folder_idstringIf provided, monitor only files within this folder (by folder ID). Adds the filter `'folder_id' in parents` to the query.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_resultsintegerMaximum number of newly-created files to emit in a single poll. Acts as an event cap, not an API page size — the trigger paginates Drive responses internally.
querystringOptional Drive search query to filter files. Examples: name contains 'report', mimeType = 'application/pdf', or complex queries like name contains 'project' and mimeType != 'application/vnd.google-apps.folder'. Leave empty to monitor all files.
Payload del evento
creatorobjectInformation about the file's creator (derived as first owner if available)
event_typestringType of event that occurred
fileobjectObligatorioThe newly created Google Drive file
Instrucciones
Instructions for setting up the trigger: - This trigger monitors Google Drive for newly created files. - You can optionally provide a search query to filter which files to monitor. - You can optionally limit monitoring to a specific parent folder by ID. - On the first run the trigger baselines to the current time and emits no past events. - Subsequent polls return files created since the previous poll. - The cursor is provider-derived from `file.createdTime`, not local wall clock — clock skew between the poller and Google does not affect it.
File Deleted or TrashedGOOGLEDRIVE_FILE_DELETED_OR_TRASHED_TRIGGERTriggerTriggers when a file is moved to trash or permanently deleted in Drive.
GOOGLEDRIVE_FILE_DELETED_OR_TRASHED_TRIGGERTriggerTriggers when a file is moved to trash or permanently deleted in Drive.
Configuración
drive_idstringOptional shared drive ID to monitor. When unset, the trigger monitors My Drive plus shared drives surfaced by `include_items_from_all_drives`.
include_corpus_removalsbooleanInclude changes where the user lost access to the file (e.g. permission removal). When false, only true deletions and trash events surface.
include_items_from_all_drivesbooleanWhether items from My Drive AND all visible shared drives should appear in results.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
page_sizeintegerMaximum number of changes per `changes.list` page (1-1000).
restrict_to_my_drivebooleanIf true, restrict results to changes inside the My Drive hierarchy.
spacesstringComma-separated list of spaces to query. Supported values are 'drive' and 'appDataFolder'.
Payload del evento
deletion_timestampstringObligatorioTimestamp of the delete/trash event in RFC 3339 format
event_typestringObligatorioType of deletion event. Either 'trashed' (soft-delete, recoverable from the user's trash) or 'removed' (hard-delete or, when include_corpus_removals=true, access loss).
file_idstringObligatorioID of the file that was deleted or trashed
namestringName of the file. May be absent when the file was permanently removed (the file resource is gone, only the change record remains).
Instrucciones
This trigger monitors Google Drive for files that are moved to trash or permanently deleted. Each payload carries an `event_type`: 'trashed' for soft-delete (file is recoverable from the user's trash) or 'removed' (hard-delete; when `include_corpus_removals` is true, also covers access-loss events — Drive's API does not let us distinguish those from hard deletes). On first run, the trigger baselines to the current change cursor and emits no events.
File Shared (Permissions Added)GOOGLEDRIVE_FILE_SHARED_PERMISSIONS_ADDEDTriggerTriggers when new sharing permissions are granted to a file or folder.
Uses Drive's `changes.list` endpoint with inline `permissions` in the
`fields` mask so each change carries the file's current permission set
provider-atomically. We diff that against `seen_permission_keys` to
identify newly added grants. Drive page tokens are the primary cursor;
if Drive rejects a stored token, the trigger raises `PollingTriggerError`
without clearing state rather than silently re-baselining and dropping
events.
Limitation: truly ephemeral permissions (added and revoked between two
polls without any other file modification in between) are not detected.
Drive Activity API would catch those but requires an additional OAuth
scope and a different payload contract.
GOOGLEDRIVE_FILE_SHARED_PERMISSIONS_ADDEDTriggerTriggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.
Configuración
drive_idstringThe shared drive ID to monitor. If omitted, monitors My Drive and any shared drives surfaced via include_items_from_all_drives.
file_idstringIf provided, only emit permission changes for this specific file or folder ID.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
page_sizeintegerMaximum number of changes to fetch per `changes.list` page (1-1000).
supports_all_drivesbooleanWhether to include both My Drive and shared drives when monitoring changes.
Payload del evento
event_typestringType of event that occurred
new_permissionsobject[]List of newly detected permissions
Instrucciones
This trigger fires when new sharing permissions are added to files or folders in your Google Drive. Optionally specify a 'file_id' to monitor only a single file or folder. Inherited permissions (from shared parent folders or drives) are filtered out — only direct shares fire the trigger. The cursor is the Drive `pageToken` from the Changes API; a rejected cursor surfaces as a polling error without clearing state.
File UpdatedGOOGLEDRIVE_FILE_UPDATED_TRIGGERTriggerTriggers when a file's metadata or content changes in Google Drive.
GOOGLEDRIVE_FILE_UPDATED_TRIGGERTriggerTriggers when a file's metadata or content changes in Google Drive.
Configuración
content_onlybooleanWhen true, fire only on content changes (new revision) and suppress metadata-only updates such as rename or move. Relies on `headRevisionId`, which Drive only exposes for binary files — Google-native docs (Docs/Sheets/Slides) do not carry `headRevisionId` and will not fire this trigger under `content_only=true`.
drive_idstringOptional shared drive ID to monitor. When unset, the trigger monitors My Drive plus shared drives surfaced by `include_items_from_all_drives`.
include_items_from_all_drivesbooleanWhether items from My Drive AND all visible shared drives should appear in results.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
page_sizeintegerMaximum number of changes per `changes.list` page (1-1000).
Payload del evento
file_idstringObligatorioThe ID of the file that changed
last_modifying_userobjectInformation about the last user who modified the file
modified_timestringThe last time the file was modified (RFC 3339 date-time)
Instrucciones
Instructions for setting up the trigger: - This trigger monitors Google Drive changes using the Changes API. - On first run, it baselines to the current change cursor and emits no events. - Subsequent polls return file updates that occurred since the previous poll. - Trashed files do not fire this trigger; the file_deleted_or_trashed trigger handles those events instead. - Set `content_only=true` to suppress metadata-only updates (rename, move, share) and fire only when the file's head revision changes. Note this only works for binary files — Google-native docs (Docs/Sheets/Slides) do not expose `headRevisionId`. - You can optionally limit to a specific shared drive by providing drive_id.
Google Drive ChangesGOOGLEDRIVE_GOOGLE_DRIVE_CHANGESTriggerTriggers when changes are detected in a Google Drive.
GOOGLEDRIVE_GOOGLE_DRIVE_CHANGESTriggerTriggers when changes are detected in a Google Drive.
Configuración
drive_idstringOptional shared drive ID to monitor. When unset, the trigger monitors the user's My Drive plus any shared drives surfaced by `include_items_from_all_drives`.
include_items_from_all_drivesbooleanWhether items from My Drive AND all visible shared drives should appear in results. Required for shared-drive coverage.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
restrict_to_my_drivebooleanIf true, restrict results to changes inside the My Drive hierarchy even when `include_items_from_all_drives` is true.
spacesstringComma-separated list of spaces to query. Supported values are 'drive' and 'appDataFolder'.
Payload del evento
Sin parámetros.
Instrucciones
**Instructions for Setting Up the Trigger:** - Ensure you have set the necessary permissions to access Google Drive. - On first run the trigger baselines to the current change cursor and emits no events; subsequent polls return any changes that occurred since the previous poll. - If Drive rejects a stored page token, the trigger raises an error instead of silently re-baselining and dropping events in the gap.
New File Matching QueryGOOGLEDRIVE_NEW_FILE_MATCHING_QUERY_TRIGGERTriggerTriggers when a new Google Drive file matches a provided query.
This is the legacy query-centric trigger: it preserves Drive API query
config such as ``corpora`` / ``driveId`` aliases and emits the historical
``file_matching_query`` event type. ``FileCreatedTrigger`` covers the
broader "new file" case and emits ``file_created``.
GOOGLEDRIVE_NEW_FILE_MATCHING_QUERY_TRIGGERTriggerTriggers when a new Google Drive file matches a provided query. This is the legacy query-centric trigger: it preserves Drive API query config such as ``corpora`` / ``driveId`` aliases and emits the historical ``file_matching_query`` event type. ``FileCreatedTrigger`` covers the broader "new file" case and emits ``file_created``.
Configuración
corporastringBodies of items to which the query applies. Supported: 'user', 'domain', 'drive', 'allDrives'.
driveIdstringID of the shared drive to search (use with corpora='drive').
includeItemsFromAllDrivesbooleanInclude items from both My Drive and shared drives.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_resultsintegerMaximum number of newly-matching files to emit per poll. The trigger paginates Drive responses internally bounded by an internal page cap; this field caps emitted events, not API pages.
querystringDrive query to filter files. Examples: name contains 'report', mimeType = 'application/pdf', (name contains 'Draft' and not trashed). The query is composed with a `createdTime >= <watermark>` boundary plus ID dedup so the trigger only fires for newly created files.
spacesstringA comma-separated list of spaces to query within. Supported: 'drive', 'appDataFolder'.
supportsAllDrivesbooleanWhether the requesting application supports both My Drives and shared drives.
Payload del evento
event_typestringType of event that occurred
fileobjectObligatorioThe newly matched Drive file
Instrucciones
This trigger monitors Google Drive and fires when a newly created file matches your query. Provide a Drive 'q' query (e.g. `name contains 'X'` or `mimeType = 'application/pdf'`). The cursor is provider-derived from `file.createdTime`, not local wall clock. On the first run the trigger initializes state and does not emit past files.