Googledrive

Learn how to use Googledrive with Composio

Overview

SLUG

GOOGLEDRIVE

Description

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

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/userinfo.email
bearer_token
string
token
stringRequired

Tools

SLUG: GOOGLEDRIVE_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.

Action Parameters

anchor
string
content
stringRequired
file_id
stringRequired
quotedFileContent.mimeType
string
quotedFileContent.value
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_CREATE_DRIVE

Tool to create a new shared drive. use when you need to programmatically create a new shared drive for collaboration or storage.

Action Parameters

backgroundImageFile
object
colorRgb
string
hidden
boolean
name
stringRequired
requestId
stringRequired
themeId
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_CREATE_FILE

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).

Action Parameters

description
string
fields
string
mimeType
string
name
string
parents
array
starred
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_CREATE_FOLDER

Creates 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.

Action Parameters

folder_name
stringRequired
parent_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_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.

Action Parameters

action
string
comment_id
stringRequired
content
stringRequired
fields
string
file_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_CREATE_SHORTCUT_TO_FILE

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.

Action Parameters

ignoreDefaultVisibility
boolean
includeLabels
string
includePermissionsForView
string
keepRevisionForever
boolean
name
stringRequired
supportsAllDrives
boolean
target_id
stringRequired
target_mime_type
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_DELETE_COMMENT

Deletes a comment from a file. use when you need to remove a specific comment from a google drive file.

Action Parameters

comment_id
stringRequired
file_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_DELETE_DRIVE

Tool to permanently delete a shared drive. use when you need to remove a shared drive and its contents (if specified).

Action Parameters

allowItemDeletion
boolean
driveId
stringRequired
useDomainAdminAccess
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_DELETE_PERMISSION

Deletes a permission from a file by permission id. use when you need to revoke access for a specific user or group from a file.

Action Parameters

file_id
stringRequired
permission_id
stringRequired
supportsAllDrives
boolean
useDomainAdminAccess
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_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.

Action Parameters

comment_id
stringRequired
file_id
stringRequired
reply_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_DOWNLOAD_FILE

Download a file from google drive

Action Parameters

file_id
stringRequired
mime_type
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_EMPTY_TRASH

Tool to permanently delete all of the user's trashed files. use when you want to empty the trash in google drive.

Action Parameters

driveId
string
enforceSingleParent
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_FILES_MODIFY_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.

Action Parameters

file_id
stringRequired
kind
stringDefaults to drive#modifyLabelsRequest
label_modifications
arrayRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_GENERATE_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.

Action Parameters

count
integer
space
string
type
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_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.

Action Parameters

fields
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_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.

Action Parameters

driveId
string
supportsAllDrives
boolean
supportsTeamDrives
boolean
teamDriveId
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_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.

Action Parameters

commentId
stringRequired
fileId
stringRequired
includeDeleted
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_GET_DRIVE

Tool to get a shared drive by id. use when you need to retrieve information about a specific shared drive.

Action Parameters

drive_id
stringRequired
use_domain_admin_access
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_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.

Action Parameters

acknowledgeAbuse
boolean
fileId
stringRequired
includeLabels
string
includePermissionsForView
string
supportsAllDrives
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLEDRIVE_GET_PERMISSION

Gets a permission by id. use this tool to retrieve a specific permission for a file or shared drive.

Action Parameters

file_id
stringRequired
permission_id
stringRequired
supports_all_drives
boolean
use_domain_admin_access
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired