Google drive automation

From aAAaqwq/AGI-Super-Team · View interactive version

Google drive automation is an AI agent skill from the GitHub repository aAAaqwq/AGI-Super-Team. Automate Google Drive file operations (upload, download, search, share, organize) via Rube MCP (Composio). Upload/download files, manage folders, share with permissions, and search across drives programmatically.

How to use this skill

Skill file

Google Drive Automation via Rube MCP

Automate Google Drive workflows including file upload/download, search, folder management, sharing/permissions, and organization through Composio's Google Drive toolkit.

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit googledrive
  3. If connection is not ACTIVE, follow the returned auth link to complete Google OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Upload and Download Files

When to use: User wants to upload files to or download files from Google Drive

Tool sequence:

  1. GOOGLEDRIVE_FIND_FILE - Locate target folder for upload [Prerequisite]
  2. GOOGLEDRIVE_UPLOAD_FILE - Upload a file (max 5MB) [Required]
  3. GOOGLEDRIVE_RESUMABLE_UPLOAD - Upload large files [Fallback]
  4. GOOGLEDRIVE_DOWNLOAD_FILE - Download a file by ID [Required]
  5. GOOGLEDRIVE_DOWNLOAD_FILE_OPERATION - Track long-running downloads [Fallback]
  6. GOOGLEDRIVE_GET_FILE_METADATA - Verify file after upload/download [Optional]

Key parameters:

Pitfalls:

2. Search and List Files

When to use: User wants to find specific files or browse Drive contents

Tool sequence:

  1. GOOGLEDRIVE_FIND_FILE - Search by name, content, type, date, or folder [Required]
  2. GOOGLEDRIVE_LIST_FILES - Browse files with folder scoping [Alternative]
  3. GOOGLEDRIVE_LIST_SHARED_DRIVES - Enumerate shared drives [Optional]
  4. GOOGLEDRIVE_GET_FILE_METADATA - Get detailed file info [Optional]
  5. GOOGLEDRIVE_GET_ABOUT - Check storage quota and supported formats [Optional]

Key parameters:

Pitfalls:

3. Share Files and Manage Permissions

When to use: User wants to share files or manage access permissions

Tool sequence:

  1. GOOGLEDRIVE_FIND_FILE - Locate the file to share [Prerequisite]
  2. GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE - Set sharing permission [Required]
  3. GOOGLEDRIVE_LIST_PERMISSIONS - View current permissions [Optional]
  4. GOOGLEDRIVE_GET_PERMISSION - Inspect a specific permission [Optional]
  5. GOOGLEDRIVE_UPDATE_PERMISSION - Modify existing permission [Optional]
  6. GOOGLEDRIVE_DELETE_PERMISSION - Revoke access [Optional]

Key parameters:

Pitfalls:

4. Create and Organize Folders

When to use: User wants to create folder structures or move files between folders

Tool sequence:

  1. GOOGLEDRIVE_FIND_FILE - Check if folder already exists [Prerequisite]
  2. GOOGLEDRIVE_CREATE_FOLDER - Create a new folder [Required]
  3. GOOGLEDRIVE_GET_FILE_METADATA - Verify created folder [Optional]
  4. GOOGLEDRIVE_MOVE_FILE - Move files between folders [Optional]
  5. GOOGLEDRIVE_UPDATE_FILE_PUT - Update file metadata/parents [Alternative]

Key parameters:

Pitfalls:

Common Patterns

ID Resolution

Query Syntax

Google Drive uses a specific query language:

Pagination

Export Formats

For Google Workspace files, set mime_type to export:

Known Pitfalls

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| Search files | GOOGLEDRIVE_FIND_FILE | q, corpora, pageSize |

| List files | GOOGLEDRIVE_LIST_FILES | folderId, q, orderBy |

| Upload file | GOOGLEDRIVE_UPLOAD_FILE | file_to_upload, folder_to_upload_to |

| Resumable upload | GOOGLEDRIVE_RESUMABLE_UPLOAD | file data |

| Download file | GOOGLEDRIVE_DOWNLOAD_FILE | file_id, mime_type (Workspace only) |

| File metadata | GOOGLEDRIVE_GET_FILE_METADATA | fileId, fields |

| Create folder | GOOGLEDRIVE_CREATE_FOLDER | name, parent_id |

| Move file | GOOGLEDRIVE_MOVE_FILE | file_id, add_parents, remove_parents |

| Share file | GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE | file_id, role, type, email_address |

| List permissions | GOOGLEDRIVE_LIST_PERMISSIONS | fileId |

| Update permission | GOOGLEDRIVE_UPDATE_PERMISSION | file_id, permission_id |

| Delete permission | GOOGLEDRIVE_DELETE_PERMISSION | file_id, permission_id |

| List shared drives | GOOGLEDRIVE_LIST_SHARED_DRIVES | pageSize |

| Drive info | GOOGLEDRIVE_GET_ABOUT | (none) |

| Create shortcut | GOOGLEDRIVE_CREATE_SHORTCUT_TO_FILE | target file_id |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.