OperatorGet started
← All integrations
Google Drive logo

Connect Google Drive to OpenClaw on Operator.io

Google Drive is a cloud storage platform for uploading, sharing, and collaborating on files. It's perfect for keeping your documents accessible and organized across devices.

Automate Google Drive with AI

Operator puts an OpenClaw agent in front of Google Drive. You describe the job from Telegram or Discord and it handles the rest inside Google Drive, picking the right calls from the 76 Google Drive actions and checking its own work as it goes.

Your agent reaches Google Drive directly or through connectors like Composio MCP and Pipedream MCP, which handle the sign in and token refresh for you, so there is nothing to wire up and no API keys to paste.

What your agent can do with Google Drive

Your agent can call any of these Google Drive actions by name as part of a larger task. Ask for the outcome you want and it picks the right ones.

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

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 in Google Drive. Returns a nested `data` object; extract `data.id` for the resulting comment identifier. Omit `anchor` and `quoted_file_content_*` for general file-level comments.

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 File or Folder

Creates a new file or folder in Google Drive. Supports both metadata-only creation (for folders and empty documents) and file upload with content. When file_to_upload is provided, uploads the actual file bytes; otherwise creates an empty...

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. Returns flat metadata fields (`id`, `mimeType`, `name`) at the top level — n...

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. Google Dr...

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

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 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. The shortcut receives its own distinct file ID (capture from response). No p...

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

Permanently deletes a comment thread (and all its replies) from a Google Drive file — this action is irreversible. To remove only a single reply within a thread, use GOOGLEDRIVE_DELETE_REPLY instead. Verify the exact comment content and...

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 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. Deletion is irreversible — confirm the target user, group, or permission type before executing. IMPORTANT: You must first call GOOGLEDRIVE_LIST_PERMISSIONS to get valid permission IDs. T...

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. Deletion is irreversible; obtain explicit user confirmation before calling. Removes only the targeted reply, not the full comment thread — use GOOGLEDRIVE_DELETE_COMMENT to remove the entire t...

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.

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

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

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

Empty Trash

Tool to permanently and irreversibly delete ALL trashed files in the user's Google Drive or a specified shared drive. Recovery is impossible after execution — no Drive tool can restore items once trash is emptied. Affects every item in t...

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

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

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

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. Note: storageQuota reflects My Drive (personal) storage...

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 Changes Start Page Token

Tool to get the starting pageToken for listing future changes in Google Drive. Returns only a token — pass it to GOOGLEDRIVE_LIST_CHANGES to retrieve actual changes. Persist this token; losing it requires a full rescan. The token is forw...

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 Shared Drive

Tool to get a shared drive by ID. Use when you need to retrieve information about a specific shared drive. To discover drive_ids, use GOOGLEDRIVE_LIST_SHARED_DRIVES first; GOOGLEDRIVE_GET_ABOUT reflects overall user storage, not individu...

Get File Metadata

Tool to get a file's metadata by ID. Use to verify `mimeType`, `parents`, and `trashed` status before destructive operations (delete/move/export), or to confirm `mimeType='application/vnd.google-apps.document'` before calling GOOGLEDOCS_...

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 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. Newly created or updated permissions on shared drives may have a brief propagation delay before appearing.

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 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 (name, modifiedTime, keepForever, etc.) by revision ID. Returns metadata only — not file content. Use a separate download tool to retrieve file content or restore a revision.

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. Deleting a folder permanently removes all nested files and subfolders.

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.

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 a full incremental change feed is needed (for simple recent-file lookups, prefer GOOGLEDRIVE_FIND_FILE instead). Tracks modifications such as creations, deletions, or permissi...

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 Comments

Tool to list all comments for a file in Google Drive. Results are paginated; iterate using nextPageToken until absent to retrieve all comments. Filtering by author, content, or other criteria must be done client-side. Use commentId, crea...

Plus 28 more Google Drive actions your agent can call.

How to connect Google Drive

You authorize Google Drive once from your dashboard. Operator holds the connection and refreshes the access tokens on its own, so your agent keeps working with Google Drive without you signing in again. The same setup unlocks every other app your agent can reach, so you only do it once.

When you are ready, the get started guide walks through standing up your OpenClaw agent.

Common questions about Google Drive

How do I connect Google Drive to Operator?
You authorize Google Drive once from your Operator dashboard. Operator holds the connection and refreshes the access token for you, so your agent keeps working with Google Drive without you signing in again.
Can my agent work with my files in Google Drive?
Yes. It can create, read, update, and organize documents and files, and pull one back when you ask. Use it to file new documents in the right place, search for something across your account, or keep Google Drive tidy without doing it by hand.
Do I need to write code or manage Google Drive API keys?
No code and no API keys. You authorize Google Drive through a normal sign in and Operator handles the connection, so there is nothing to wire up or host.
Can my agent use Google Drive together with my other apps?
Yes. The same agent reaches every app you connect, so it can move between Google Drive and tools like Google Docs, Dropbox, Google Super in one job, reading from one and acting in another without you wiring anything between them.

Google Drive integrations

Pick an app to see what your agent does across Google Drive and it, or browse all integrations.

Put your agent on Google Drive

Sign in, connect Google Drive, and hand your agent the work. Your first week is free.

Get started