Google Drive
Connect your agent to Google Drive to search, read, create, and manage files and folders. Your agent can access Google Docs, Sheets, PDFs, text files, and more.
Setup
Use the same Google Cloud project as Calendar/Sheets. Enable the Google Drive API and generate a refresh token with the https://www.googleapis.com/auth/drive scope. You can reuse the same Client ID and Secret.
Tools
| Tool | Description |
|---|---|
| gdrive_search | Search files by name or content with optional MIME type filter |
| gdrive_list_files | List files in a folder (defaults to root) |
| gdrive_read_file | Read text content — Docs export as text, Sheets as CSV |
| gdrive_create_file | Create Google Docs, Sheets, folders, or text files |
| gdrive_move_file | Move files between folders or rename them |
| gdrive_delete_file | Move a file to trash (recoverable) |
Reading Files
Google Workspace files (Docs, Sheets, Slides) are automatically exported to readable formats. Regular files (txt, csv, json, etc.) are downloaded directly. Very large files are truncated to 15,000 characters.
Events
| Event | When |
|---|---|
| gdrive.file_created | A new file or folder is created |
| gdrive.file_deleted | A file is moved to trash |
Example
User: "Find the Q1 report in my Drive and summarize it"
Agent: Searches Drive for "Q1 report", reads the document content, and provides a summary.
Integration Ideas
Pair with Google Sheets for data workflows. Use with Scheduled Actions to generate weekly report documents. Combine with Slack to share Drive links in channels.
