Manage files and folders in Google Drive with powerful search, upload, and organization capabilities
Google Drive allows you to manage files and folders programmatically. You can search for files by name or content, upload new files, read file contents, organize files into folders, add comments, and update file metadata. This integration supports both text-based and binary files, making it perfect for document management, file organization, and automated workflows.
Required:
action
- The operation to perform (search, read, upload, list-folder, add-comment, move-file, update-metadata)Find files by exact name match or partial name search
Parameters:
file-name
(required) - The name of the file to search forexact-match
(optional) - Whether to search for exact name match (default: true)Example:
Response:
Read the contents of a file (automatically handles text and binary files)
Parameters:
file-id
(required) - The ID of the file to readfile-url
(optional) - Google Drive URL (will extract file ID automatically)Example:
Response:
Create a new file with content
Parameters:
file-name
(required) - Name for the new filecontent
(required) - File content (text or base64-encoded binary)mime-type
(required) - MIME type of the filefolder-id
(optional) - Parent folder IDdescription
(optional) - File descriptionExample:
Response:
Get all files in a specific folder
Parameters:
folder-id
(required) - The ID of the folderfolder-name
(optional) - Folder name (will search for ID if not provided)Example:
Response:
Add a comment to a file
Parameters:
file-id
(required) - The ID of the filecomment
(required) - The comment text to addExample:
Response:
Move a file to a different folder
Parameters:
file-id
(required) - The ID of the file to movedestination-folder-id
(required) - The destination folder IDsource-folder-id
(required) - The current parent folder IDExample:
Response:
Update file description or other metadata
Parameters:
file-id
(required) - The ID of the filedescription
(optional) - New description for the filename
(optional) - New name for the fileExample:
Response:
Supported file types include all Google Workspace formats (Docs, Sheets, Slides), Microsoft Office files, PDFs, images, and text files. Binary content should be base64-encoded when uploading. The system automatically detects file types and handles them appropriately for reading operations.