by yoshiki-0428 · v0.1.0
Google Drive
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: yoshiki-0428
Version: 0.0.1
Type: tool
This plugin provides a set of tools for integrating Google Drive with Dify applications. It allows you to search, create, and manage files and folders in Google Drive directly from your Dify workflows and agents.
Use the File Search tool to find files in Google Drive by name:
Input:
{
"query": "quarterly report",
"max_results": 5,
"parent_id": "optional_folder_id"
}
Output:
{
"file_count": 2,
"files": [
{
"id": "1AbCdEfGhIjKlMnOpQrStUvWxYz",
"name": "Q1 Quarterly Report.pdf",
"mime_type": "application/pdf",
"web_view_link": "https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz/view"
},
{
"id": "2BcDeFgHiJkLmNoPqRsTuVwXyZ",
"name": "Q2 Quarterly Report.docx",
"mime_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"web_view_link": "https://drive.google.com/file/d/2BcDeFgHiJkLmNoPqRsTuVwXyZ/view"
}
]
}
Use the Create Folder tool to create a new folder in Google Drive:
Input:
{
"name": "Project Documents",
"parent_id": "optional_parent_folder_id"
}
Output:
{
"id": "3CdEfGhIjKlMnOpQrStUvWxYz",
"name": "Project Documents",
"web_view_link": "https://drive.google.com/drive/folders/3CdEfGhIjKlMnOpQrStUvWxYz",
"success": true
}
Use the Create File tool to upload a file to Google Drive:
Input:
{
"file": {file_object},
"name": "presentation.pptx",
"folder_name": "Project Presentations"
}
Output:
{
"id": "4DeFgHiJkLmNoPqRsTuVwXyZ",
"name": "presentation.pptx",
"parent_id": "5EfGhIjKlMnOpQrStUvWxYz",
"folder_name": "Project Presentations",
"mime_type": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"web_view_link": "https://drive.google.com/file/d/4DeFgHiJkLmNoPqRsTuVwXyZ/view",
"success": true
}
Use the File Download tool to download a file by its ID. Google Workspace documents (Docs, Sheets, Slides, etc.) are exported to PDF automatically.
Input:
{
"file_id": "1AbCdEfGhIjKlMnOpQrStUvWxYz"
}
Output (binary file example):
{
"text": "File 'sample.xlsx' downloaded successfully",
"files": [
{
"dify_model_identity": "__dify__file__",
"id": null,
"tenant_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"type": "document",
"transfer_method": "tool_file",
"remote_url": null,
"related_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"filename": "abc123def456789012345678901234567.xlsx",
"extension": ".xlsx",
"mime_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"size": 1291183,
"url": "https://upload.dify.ai/files/tools/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.xlsx?timestamp=1234567890&nonce=abcdef1234567890abcdef1234567890&sign=ExampleSignatureHashValue123456789abcdef"
}
],
"json": [
{
"exported": false,
"file_id": "1AbCdEfGhIjKlMnOpQrStUvWxYz",
"file_name": "sample.xlsx",
"file_size": 1291183,
"mime_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}
]
}
Output (Google Doc example):
{
"text": "Google Workspace file 'sample-gdoc' exported as PDF 'sample-gdoc.pdf' successfully",
"files": [
{
"dify_model_identity": "__dify__file__",
"id": null,
"tenant_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"type": "document",
"transfer_method": "tool_file",
"remote_url": null,
"related_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"filename": "def456abc789012345678901234567890.pdf",
"extension": ".pdf",
"mime_type": "application/pdf",
"size": 14687,
"url": "https://upload.dify.ai/files/tools/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.pdf?timestamp=1234567891&nonce=fedcba0987654321fedcba0987654321&sign=AnotherExampleSignatureHashValue987654321abcdef"
}
],
"json": [
{
"exported": true,
"file_id": "2BcDeFgHiJkLmNoPqRsTuVwXyZ",
"file_name": "sample-gdoc.pdf",
"file_size": 14687,
"mime_type": "application/pdf",
"original_mime_type": "application/vnd.google-apps.document",
"original_name": "sample-gdoc"
}
]
}
If you encounter issues:
For issues or feature requests, please open an issue in the Dify Official Plugins repository.