Overview
Cloud storage service for file backup, sharing, and collaboration. Through Langdock’s integration, you can access and manage Google Drive directly from your conversations.Authentication: OAuth
Category: Productivity & Collaboration
Availability: All workspace plans
Available Actions
Download file
google_drive.download_file_native
Downloads the contents of a file from Google Drive based on its file id
Requires Confirmation: No
Parameters:
itemId(ID, Required): The unique identifier of the file you want to download from Google Drive
Check file access
google_drive.check_file_access
Checks if the current user has access to a specific file
Requires Confirmation: No
Parameters:
itemId(TEXT, Required): The unique identifier of the file you want to check access for in Google Drive
Get current user
google_drive.get_current_user
Retrieves information about the currently logged-in Google Drive user
Requires Confirmation: No
Parameters: None
Output: Returns the operation result
Search files native
google_drive.search_files_native
Searches through files in your Google Drive using simple text queries
Requires Confirmation: No
Parameters:
query(TEXT, Optional): A query string for filtering the file results. If no query string is passed, it returns the most recent files. This searches through the full text and the titles of the files
Get folder
google_drive.get_folder
Searches for folders in Google Drive by name
Requires Confirmation: No
Parameters:
folderName(TEXT, Required): Search term used to find folders that contain this text in their names. For example, you can search for “Projects”, “Marketing”, or “Documents” to find folders with those terms in their names
Create folder
google_drive.create_folder
Creates folders in Google Drive. Supports multiple folders (comma-separated) and nested paths (using ’/’). If a folder already exists, it will be reused and the user notified.
Requires Confirmation: Yes
Parameters:
folderPath(TEXT, Required): The folder(s) to create. Supports: single folder (‘My Folder’), nested path (‘Projects/2024/Q1’), or multiple folders separated by commas (‘FolderA, FolderB, Projects/2024’). Nested paths use ’/’ to create subfolders.parentFolderId(TEXT, Optional): Optional. The ID or URL of an existing folder where the new folder(s) should be created. If not provided, folders will be created in the root of My Drive. Examples: ‘1abc123xyz’ or ‘https://drive.google.com/drive/folders/1abc123xyz’
Search files
google_drive.search_files
Searches through the available files in your Google Drive with advanced filtering options
Requires Confirmation: No
Parameters:
query(TEXT, Required): A simple search term to filter files (e.g., ‘company handbook’, ‘budget report’). The action will search for this term in file names.orderBy(TEXT, Optional): A comma-separated list of sort keys. Valid keys are: createdTime: When the file was created. folder: results are sorted by folder ID using alphabetical ordering. modifiedByMeTime: The last time the file was modified by the user. modifiedTime: The last time the file was modified by anyone. name: T…folderId(TEXT, Optional): Unique identifier of the folder in which you want to search.limit(NUMBER, Optional): Maximum number of files to return. If not specified, returns up to 1000 files
Get recent files
google_drive.get_recent_files
Retrieves the most recently modified files from Google Drive
Requires Confirmation: No
Parameters:
folderId(ID, Optional): Optional folder ID to limit results to a specific folderlimit(NUMBER, Optional): Maximum number of files to return. Defaults to 100 if not specified
Get file
google_drive.download_google_drive_file
Gets a file from Google Drive based on the item ID and attaches it to the chat.
Requires Confirmation: No
Parameters:
itemId(ID, Required): The unique identifier of the file you want to download from Google Drive.
List files in folder
google_drive.list_files_in_folder
Lists all files in a Google Drive folder including subfolders, limited to the first 200 files
Requires Confirmation: No
Parameters:
folderId(ID, Required): The unique identifier of the Google Drive folder to list files from. This will include files from the folder and all its subfolders
List files in folder
google_drive.list_files_in_gdrive_folder
Lists files in a Google Drive folder with optional including subfolders
Requires Confirmation: No
Parameters:
folderIdOrUrl(TEXT, Required): The Google Drive folder ID or the full URL to the folder. Examples: ‘1abc123xyz’ or ‘https://drive.google.com/drive/folders/1abc123xyz’includeSubfolders(BOOLEAN, Optional): If set to true, the action will recursively list files from all subfolders within the specified folder. If false, only files directly in the specified folder are returnedmaxFiles(NUMBER, Optional): Maximum number of files to return. Defaults to 200 if not specified
Upload file
google_drive.upload_file
Upload a file to Google Drive with optional folder destination
Requires Confirmation: No
Parameters:
file(FILE, Required): The file to upload to Google DrivefolderId(ID, Optional): The ID of the folder where you want to upload the file. If not provided, the file will be uploaded to the root of your Google DrivefileName(TEXT, Optional): Optional custom name for the file. If not provided, the original filename will be used
Copy file
google_drive.copy_file
Creates a copy of an existing file in Google Drive with optional new name, destination folder, and description
Requires Confirmation: No
Parameters:
fileId(ID, Required): The unique identifier of the file you want to copyname(TEXT, Optional): Optional new name for the copied file. If not provided, the copy will have the same name as the originalfolderId(ID, Optional): The ID of the folder where the copied file should be placed. If not provided, the copy will be placed in the same location as the originaldescription(TEXT, Optional): Optional description for the copied file
Get file metadata
google_drive.get_file_metadata
Retrieves detailed metadata for a file by its ID including name, type, size, dates, and owner information.
Requires Confirmation: No
Parameters:
fileId(ID, Required): The unique identifier of the file to get metadata for
Triggers
New file
google_drive.new_file
Triggers when new files are added to Google Drive
Parameters:
folderIds(TEXT, Optional): Comma-separated list of folder IDs to monitor for new files
Updated file
google_drive.updated_file
Triggers when files are updated in Google Drive
Parameters:
fileIds(TEXT, Optional): Comma-separated list of file IDs to monitor for updatesfolderIds(TEXT, Optional): Comma-separated list of folder IDs to monitor for updates
New folder
google_drive.new_folder
Triggers when new folders are added to Google Drive
Parameters:
parentFolderId(TEXT, Optional): Comma-separated list of parent folder IDs to monitor for new folders