Connect Google Drive to Definable AI

Google Drive is a cloud storage solution for uploading, sharing, and collaborating on files across devices, with robust search and offline access

About Google Drive

Google Drive is a productivity tool. Connect it to Definable AI with one-click OAuth2 — no API keys or custom code required.

What you can automate with Google Drive

Use Definable AI's agent platform to trigger workflows from Google Drive, process results with 50+ AI models, and sync data across 900+ connected apps.

Tools & Actions (126 available)

  • Add Shared Drive Member: Tool to add a member (user/group/domain) to a Shared Drive with a specified role. Use when you need to grant access to a Shared Drive, ensuring supportsAllDrives is set correctly.
  • Add file sharing preference: Modifies sharing permissions for an existing Google Drive file, granting a specified role to a user, group, domain, or 'anyone'.
  • Copy file: Duplicates an existing file in Google Drive, identified by its `file_id`.
  • Copy file (v2): Tool to create a copy of a file in Google Drive using v2 API. Use when you need to duplicate a file. The original file remains intact while a new separate copy is created.
  • Copy file with advanced options: Creates a copy of a file and applies any requested updates with patch semantics. Use when you need to duplicate a file with advanced options like label inclusion, visibility settings, or custom metadata.
  • Create Comment: Tool to create a comment on a file. Use when you need to add a new comment to a specific file in Google Drive.
  • Create File or Folder: Creates 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).
  • Create Permission: Tool to create a permission for a file or shared drive. Use when you need to share a file or folder with users, groups, domains, or make it publicly accessible. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
  • Create Reply: Tool to create a reply to a comment in Google Drive. Use when you need to respond to an existing comment on a file.
  • Create Shared Drive: Tool to create a new shared drive. Use when you need to programmatically create a new shared drive for collaboration or storage.
  • Create Shortcut to File/Folder: Tool 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.
  • Create Team Drive (Deprecated): Tool to create a Team Drive. Deprecated: Use drives.create instead. Use when you need to create a Team Drive for collaboration.
  • Create a File from Text: Creates a new file in Google Drive from provided text content (up to 10MB), supporting various formats including automatic conversion to Google Workspace types.
  • Create a folder: Creates a new folder in Google Drive, optionally within an EXISTING parent folder specified by its ID or name. The parent folder MUST already exist - use GOOGLEDRIVE_FIND_FOLDER first to verify the parent exists or find its ID.
  • Delete Child (v2): Tool to remove a child from a folder using Google Drive API v2. Use when you need to remove a file from a specific folder.
  • Delete Comment: Deletes a comment from a file. Use when you need to remove a specific comment from a Google Drive file.
  • Delete Parent (v2): Tool to remove a parent from a file using Google Drive API v2. Use when you need to remove a file from a specific folder.
  • Delete Permission: Deletes a permission from a file by permission ID. IMPORTANT: You must first call GOOGLEDRIVE_LIST_PERMISSIONS to get valid permission IDs. Use when you need to revoke access for a specific user or group from a file.
  • Delete Permission (v2): Tool to delete a permission from a file or shared drive using Google Drive API v2. Use when you need to revoke access for a specific user or group. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
  • Delete Property (v2 API): Tool to delete a property from a file using Google Drive API v2. Use when you need to remove custom key-value metadata from a file.
  • Delete Reply: Tool to delete a specific reply by reply ID. Use when you need to remove a reply from a comment on a file.
  • Delete Reply (v2): Tool to delete a reply to a comment using Google Drive API v2. Use when you need to remove a specific reply from a comment thread.
  • Delete Revision: Tool to permanently delete a file revision. Use when you need to remove a specific version of a binary file (images, videos, etc.). Cannot delete revisions for Google Docs/Sheets or the last remaining revision.
  • Delete Shared Drive: Tool to permanently delete a shared drive. Use when you need to remove a shared drive and its contents (if specified).
  • Delete Team Drive (Deprecated): Tool to permanently delete a Team Drive. Deprecated: Use drives.delete instead. Use when you need to remove a Team Drive using the legacy endpoint.
  • Delete Team Drive (v2): Tool to permanently delete a Team Drive using the v2 API endpoint. Deprecated: Use drives.delete instead. Use when you need to remove a Team Drive using the legacy v2 endpoint.
  • Delete file: Tool to permanently delete a file owned by the user without moving it to trash. Use when permanent deletion is required. If the file belongs to a shared drive, the user must be an organizer on the parent folder.
  • Delete folder or file: Tool 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.
  • Download a file from Google Drive: Downloads 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. Examples: Export a Google Doc to plain text: {"file_id": "1N2o5xQWmAbCdEfGhIJKlmnOPq", "mime_type": "text/plain"} Download a Google Sheet as CSV: {"file_id": "1ZyXwVuTsRqPoNmLkJiHgFeDcB", "mime_type": "text/csv"}
  • Download file content: Tool to download file content as a long-running operation. Use when you need to download files from Google Drive. Operations are valid for 24 hours from the time of creation.
  • Download file via operation: Tool to download file content using long-running operations. Use when you need to download Google Vids files or export Google Workspace documents as part of a long-running operation. Operations are valid for 24 hours from creation.
  • Edit File: Updates an existing Google Drive file with binary content by overwriting its entire content with new text (max 10MB). IMPORTANT: This action only works with files that have binary content (text files, PDFs, images, etc.). It does NOT support editing Google Workspace native files (Google Docs, Sheets, Slides, etc.). For Google Workspace files, use the Google Docs API, Google Sheets API, or Google Slides API directly.
  • Empty Trash: Tool to permanently delete all of the user's trashed files. Use when you want to empty the trash in Google Drive. This action allows you to permanently remove all files that are currently in the trash of Google Drive. It can be applied to files in both the user's root trash and shared drives, ensuring a complete removal of unwanted files.
  • Export Google Workspace file: Exports a Google Workspace document to the requested MIME type and returns exported file content. Use when you need to export Google Docs, Sheets, Slides, Drawings, or Apps Script files to a specific format. Note: The exported content is limited to 10MB by Google Drive API.
  • Find file: The comprehensive Google Drive search tool that handles all file and folder discovery needs. Use this for any file finding task - from simple name searches to complex queries with date filters, MIME types, permissions, custom properties, folder scoping, and more. Searches across My Drive and shared drives with full metadata support. Examples: - Find PDFs: q="mimeType = 'application/pdf'" - Find recent files: q="modifiedTime > '2024-01-01T00:00:00'" - Search by name: q="name contains 'report'" - Files in folder: folderId="abc123" or q="'FOLDER_ID' in parents"
  • Find folder: Tool 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.
  • Generate File IDs: Generates 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.
  • Get About (v2 API): Tool to retrieve information about the current user and Drive API settings using the v2 API. Use when you need legacy v2 API compatibility or specific v2-only fields like rootFolderId and largestChangeId.
  • Get App: Tool to get information about a specific Drive app by ID. Use 'self' as the app ID to get information about the calling app.
  • Get Change (v2 - Deprecated): Tool to get a specific change by ID from Google Drive v2 API. Deprecated: Use changes.getStartPageToken and changes.list to retrieve recent changes instead.
  • Get Changes Start Page Token: Tool to get the starting pageToken for listing future changes in Google Drive. Use this when you need to track changes to files and folders.
  • Get Changes Start Page Token (v2): Tool to get the starting pageToken for listing future changes (v2 API). Use when tracking changes to files and folders in Google Drive using the v2 API.
  • Get Child Reference (v2): Tool to get a specific child reference for a folder using Drive API v2. Use when you need to verify a specific file exists as a child of a folder.
  • Get Comment: Tool 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.
  • Get File (v2 API): Tool to get a file's metadata or content by ID from Google Drive API v2. Use when you need file metadata with alt=json, or file content with alt=media.
  • Get File Metadata: Tool to get a file's metadata by ID. Use when you need to retrieve the metadata for a specific file in Google Drive.
  • Get Parent Reference (v2): Tool to get a specific parent reference for a file using Drive API v2. Use when you need to retrieve information about a specific parent folder of a file.
  • Get Permission: Gets a permission by ID. Use this tool to retrieve a specific permission for a file or shared drive.
  • Get Permission (v2 API): Tool to retrieve a permission by ID using the Drive API v2. Use when you need to get details about a specific permission on a file or shared drive.
  • Get Permission ID for Email: Tool to get the permission ID for an email address using the Drive API v2. Use when you need to convert an email address to its corresponding permission ID.
  • Get Property (v2): Tool to get a property by its key using Google Drive API v2. Use when you need to retrieve a specific custom property attached to a file.
  • Get Reply: Tool to get a specific reply to a comment on a file. Use when you need to retrieve the details of a particular reply.
  • Get Revision: Tool to get a specific revision's metadata by revision ID. Use when you need to retrieve information about a particular version of a file.
  • Get Revision (v2): Tool to get a specific revision using Drive v2 API. Use when you need to retrieve detailed information about a particular file revision.
  • Get Shared Drive: Tool to get a shared drive by ID. Use when you need to retrieve information about a specific shared drive.
  • Get Team Drive (Deprecated): Tool to get metadata about a Team Drive by ID. Deprecated: Use the drives.get endpoint instead.
  • Get Team Drive V2 (Deprecated): Tool to get a Team Drive using the deprecated v2 API endpoint. Deprecated: Use drives.get instead.
  • Get about: Tool 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.
  • Hide Shared Drive: Tool 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.
  • Insert Child Into Folder (v2): Tool to insert a file into a folder using Drive API v2. Use when you need to add an existing file to a folder.
  • Insert Comment (v2): Tool to create a new comment on a Google Drive file using the v2 API. Use when you need to add feedback or notes to a specific file.
  • Insert File (v2): Tool to insert a new file with metadata in Google Drive using the v2 API. Use to create empty files or folders by specifying metadata like title, mimeType, and parent folders.
  • Insert File Parent (v2): Tool to add a parent folder for a file using Google Drive API v2. Use when you need to add a file to an additional folder.
  • Insert Permission (v2): Tool to insert a permission for a file or shared drive using Drive API v2. Use when you need to grant access to a file or folder. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
  • Insert Property (v2 API): Tool to add a property to a file, or update it if it already exists (v2 API). Use when you need to attach custom key-value metadata to a Google Drive file.
  • Insert Team Drive (v2 API - Deprecated): Tool to create a Team Drive using the v2 API. Deprecated: Use drives.insert instead. Use when you need to create a Team Drive with legacy v2 API compatibility.
  • List Access Proposals: Tool to list pending access proposals on a file. Use when you need to retrieve access proposals for a specific file. Note: Only approvers can list access proposals; non-approvers will receive a 403 error.
  • List Approvals: Tool to list approvals on a file for workflow-based access control. Use when you need to retrieve all approvals associated with a specific file in Google Drive.
  • List Changes: Tool 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. The pageToken is optional - if not provided, the current start page token will be automatically fetched to begin monitoring changes from now. Example usage (continuing with pageToken): ```json { "pageToken": "22633", "pageSize": 100, "includeRemoved": true } ``` Returns changes with timestamps, file IDs, and modification details. Save the `nextPageToken` from the response to continue paginating through changes, or save the `newStartPageToken` to monitor future changes efficiently.
  • List Changes (v2 API): Tool to list the changes for a user or shared drive using the Google Drive v2 API. Use when you need to track modifications to files and folders using the older v2 API format, which includes additional metadata like largestChangeId not available in v3.
  • List Comments: Tool to list all comments for a file in Google Drive. Use when you need to retrieve comments associated with a specific file.
  • List Drive Comments (v2): Tool to list a file's comments using Drive API v2. Use when you need to retrieve all comments on a Google Drive file with v2 API compatibility.
  • List Drive Replies: Tool to list all replies to a comment using Google Drive API v2. Use when you need to retrieve all replies for a specific comment on a file.
  • List File Labels: Tool to list the labels on a file. Use when you need to retrieve all labels associated with a specific file in Google Drive.
  • List File Labels (v2): Tool to list the labels on a file using the v2 API. Use when you need to retrieve all labels associated with a specific file in Google Drive.
  • List File Parents (v2): Tool to list a file's parents using Google Drive API v2. Use when you need to retrieve all parent folders for a specific file.
  • List File Revisions: Tool to list a file's revisions. Use when you need to retrieve the revision history of a specific file in Google Drive.
  • List File Revisions (v2 API): Tool to list a file's revisions using Google Drive API v2. Use when you need to retrieve the revision history of a specific file.
  • List Files and Folders: Tool 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.
  • List Folder Children (v2): Tool to list a folder's children using Google Drive API v2. Use when you need to retrieve all files and folders within a specific folder.
  • List Permissions: Tool to list a file's permissions. Use when you need to retrieve all permissions associated with a specific file or shared drive.
  • List Permissions (v2 API): Tool to list a file's or shared drive's permissions using the Google Drive v2 API. Use when you need to retrieve all permissions with v2 API format.
  • List Properties (v2 API): Tool to list a file's properties in Google Drive API v2. Use when you need to retrieve custom properties (key-value pairs) attached to a file.
  • List Replies to Comment: Tool 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.
  • List Shared Drives: Tool to list the user's shared drives. Use when you need to get a list of all shared drives accessible to the authenticated user.
  • List Shared Drives (v2): Tool to list the user's shared drives using the Drive API v2 endpoint. Use when you need to retrieve shared drives with v2-specific fields or parameters.
  • List Team Drives (Deprecated): Tool to list Team Drives (deprecated, use List Shared Drives instead). Use when you need to retrieve Team Drives using the legacy endpoint.
  • List Team Drives v2 (Deprecated): Tool to list Team Drives using the deprecated Drive API v2 endpoint. Deprecated: Use drives.list instead.
  • Modify File Labels: Modifies 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.
  • Move File: Tool 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).
  • Patch Comment: Tool to update an existing comment using PATCH method (Drive API v2). Use when you need to partially update comment properties.
  • Patch Permission: Tool to update a permission using patch semantics. Use when you need to modify specific fields of an existing permission without affecting other fields. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
  • Patch Property (v2 API): Tool to update a property on a file using PATCH semantics (v2 API). Use when you need to partially update custom key-value metadata attached to a Google Drive file.
  • Patch Reply (v2): Tool to update an existing reply to a comment using Google Drive API v2. Use when you need to modify the content or action of a reply.
  • Resumable Upload: Tool to start and complete a Google Drive resumable upload session. Use when uploading large files that require resumable, chunked uploads.
  • Stop Channel (v2): Tool to stop watching resources through a channel using the v2 API. Use when you need to stop receiving notifications for a previously established watch channel.
  • Stop Watch Channel: Tool to stop watching resources through a specified channel. Use this when you want to stop receiving notifications for a previously established watch.
  • Touch file (v2 API): Tool to set a file's updated time to the current server time using the v2 API. Use when you need to update file timestamps.
  • Trash File: Tool to move a file or folder to trash (soft delete). Use when you need to delete a file but want to allow recovery via UNTRASH_FILE. This action is distinct from permanent deletion and provides a safer cleanup workflow.
  • Trash file (v2): Tool to move a file to the trash using Google Drive v2 API. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files.
  • Unhide Shared Drive: Tool to unhide a shared drive. Use when you need to restore a shared drive to the default view.
  • Untrash File: Tool 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.
  • Update Comment: Tool to update an existing comment on a Google Drive file. Use when you need to change the content of a comment. NOTE: The 'resolved' field is read-only in the Google Drive API. To resolve or reopen a comment, use CREATE_REPLY with action='resolve' or action='reopen'.
  • Update Comment (v2 API): Tool to update an existing comment on a Google Drive file using the v2 API. Use when you need to modify comment content.
  • Update File (Metadata): Updates 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.
  • Update File Content (v2): Tool to update file content in Google Drive using API v2. Use when you need to replace or update the contents of an existing file by uploading new content.
  • Update File Metadata (PATCH v2): Tool to update file metadata using the Drive API v2 PATCH method. Use when you need to modify file properties like title, description, or labels using patch semantics.
  • Update File Revision Metadata: Updates ONLY the metadata properties of a specific file revision (keepForever, published, publishAuto, publishedOutsideDomain). IMPORTANT: This action does NOT update file content. To update file content, use EDIT_FILE or UPDATE_FILE_PUT instead. This action requires BOTH file_id AND revision_id parameters. Use LIST_REVISIONS to get available revision IDs for a file. Valid parameters: file_id (required), revision_id (required), keep_forever, published, publish_auto, published_outside_domain. Invalid parameters (use other actions): file_contents, mime_type, content, name - these are NOT supported by this action.
  • Update Permission: Tool to update a permission with patch semantics. Use when you need to modify an existing permission for a file or shared drive.
  • Update Permission (v2): Tool to update a permission on a file or shared drive using Drive API v2. Use when you need to modify an existing permission's role, expiration, or other attributes. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
  • Update Property (v2 API): Tool to update a property on a file using Google Drive API v2. Use when you need to modify an existing custom property attached to a file.
  • Update Reply: Tool to update a reply to a comment on a Google Drive file. Use when you need to modify the content of an existing reply.
  • Update Reply (v2): Tool to update an existing reply using Google Drive API v2. Use when you need to modify the content or action of a reply to a comment on a file.
  • Update Revision (v2): Tool to update a file's revision metadata using Drive API v2. Use when you need to pin a revision to prevent auto-purging or publish/unpublish Docs Editors revisions.
  • Update Shared Drive: Tool 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.
  • Update Shared Drive (v2): Tool to update the metadata for a shared drive using Google Drive API v2. Use when you need to modify a shared drive's name, color, theme, background image, or restrictions.
  • Update Team Drive (Deprecated): Tool to update a Team Drive's metadata. Deprecated: Use the drives.update endpoint instead. Use when you need to modify Team Drive properties.
  • Update Team Drive (v2 API): Tool to update a Team Drive's metadata using Google Drive API v2. Deprecated: Use drives.update instead. Use when you need to modify Team Drive properties via the v2 API.
  • Upload File: Uploads a file (max 5MB) to Google Drive, moving it to a specified folder if a valid folder ID is provided, otherwise uploads to root.
  • Upload File (Media Upload v2): Tool to upload a file to Google Drive using the v2 API simple media upload method. Use when uploading file content directly without multipart metadata.
  • Upload File from URL to Drive: Tool to fetch a file from a provided URL server-side and upload it into Google Drive. Use when you need to reliably persist externally hosted files into Drive without client-side downloads or temporary storage.
  • Upload/Update File Content: Tool to update file content in Google Drive by uploading new binary content. Use when you need to replace the contents of an existing file with new file data.
  • Watch Changes (v2): Tool to subscribe to changes for a user using the Drive v2 API. Use when you need to monitor Google Drive changes and receive notifications at a webhook URL.
  • Watch Drive Changes: Tool 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.
  • Watch File for Changes: Tool to subscribe to push notifications for changes to a specific file. Use when you need to monitor a file for modifications and receive real-time notifications at a webhook URL.
  • Watch File for Changes (v2): Tool to subscribe to changes to a file using the Google Drive v2 API. Use when you need to watch for changes to a specific file and receive notifications at a webhook endpoint.

How to connect Google Drive

  1. Sign in to Definable AI and go to Apps
  2. Search for Google Drive and click Connect
  3. Authorize via OAuth2 — takes under 30 seconds
  4. Use Google Drive actions in your AI agents and workflows