Google Drive Skill
This skill provides access to Google Drive file management capabilities via the gdrive MCP server.
When to Use
Use this skill when you need to manage files and folders on Google Drive, including searching, reading content, and uploading new data.
Prerequisites
- Google Drive MCP server configured and authorized.
- Active Google account with Drive access.
Capabilities
- List files and folders.
- Search for files.
- Read file content.
- Upload/Create files.
Process
- Determine the file or folder operation required.
- Use
gdrive_search_filesorgdrive_list_filesto find targets. - Perform the read/write operation using the appropriate tool.
- Verify the operation's success via metadata or content check.
Best Practices
- Use specific search queries (MIME types, names) to minimize data transfer.
- Always handle potential authentication errors gracefully.
- Validate file paths and permissions before attempting writes.
Tools (MCP)
These tools are provided by the gdrive MCP server:
gdrive_list_filesgdrive_search_filesgdrive_read_filegdrive_upload_file
Usage Examples
Listing Files
# List files in root
results = await gdrive_list_files()
Searching Files
# Search for PDFs
results = await gdrive_search_files(query="mimeType = 'application/pdf'")