Google Drive

Google Drive

Google Drive API for managing files, folders, and shared drives

Active Verified

Capabilities (6)

Download File Content

Download binary content of a file. Do NOT use for Sheets/Docs/Slides.

download_file(file_id, mime_type?) -> binary
Required scopes:
https://www.googleapis.com/auth/drive.readonly

List Files

List files and folders in Google Drive. Can filter by folder, file type, or search query.

list_files(folder_id?, query?, max_results?) -> {files: File[], nextPageToken?}
Required scopes:
https://www.googleapis.com/auth/drive.readonly

Create Folder

Create a new folder in Google Drive.

create_folder(name, parent_id?) -> Folder
Required scopes:
https://www.googleapis.com/auth/drive.file

Get File Details

Get metadata and details about a specific file including name, size, type, and sharing settings.

get_file(file_id) -> File
Required scopes:
https://www.googleapis.com/auth/drive.readonly

Search Files

Search for files in Google Drive using full-text search or metadata queries.

search_files(query, max_results?) -> {files: File[]}
Required scopes:
https://www.googleapis.com/auth/drive.readonly

Share File

Share a file with specific users or make it publicly accessible.

share_file(file_id, email, role) -> Permission
Required scopes:
https://www.googleapis.com/auth/drive

Authentication

  • Oauth2_authorization_code (Primary)