Setup
If you haven’t set up Google OAuth yet, complete the Google OAuth Setup first.Enable the Google Drive API
In your Google Cloud project, navigate to APIs & Services → Library, search for Google Drive API, and click Enable.
Authorize Access
Available Actions
list_files: List files and folders, with optional search query, MIME type filter, and folder scopeget_file: Retrieve metadata for a specific file (name, type, size, owners, permissions)download_file: Download the content of a file as text or base64upload_file: Upload a new file with specified content and MIME typeupdate_file: Update the content or name of an existing filecreate_folder: Create a new folder, optionally inside a parent folderdelete_file: Permanently delete a file or foldertrash_file: Move a file to the trash (recoverable)share_file: Share a file with a user or group with a specified role (reader/writer/owner)list_permissions: List all permissions on a fileremove_permission: Remove a specific permission from a filelist_shared_drives: List all shared drives accessible to the account
Example Usage
Once configured, you can ask your agent things like:- “List all PDF files in my Drive”
- “Upload this report as a file named ‘Q2-Report.txt’”
- “Download the file named ‘budget.csv’ from my Drive”
- “Create a folder called ‘Project Assets’ inside my ‘Work’ folder”
- “Share the contract with bob@example.com as a viewer”
- “Who has access to my ‘Roadmap’ document?”
- “Move the old proposal to trash”