google-drive-upload
GitHub通过Google Apps Script将文件上传至Google Drive。支持自然语言触发,自动读取配置、Base64编码并POST请求。适用于保存或发送文件到Drive的场景,支持多语言和文件夹组织。
Trigger Scenarios
Install
npx skills add davepoon/buildwithclaude --skill google-drive-upload -g -y
SKILL.md
Frontmatter
{
"name": "google-drive-upload",
"category": "automation",
"description": "Upload files directly to Google Drive via a deployed Google Apps Script web app. Trigger on: upload to Drive, save to Drive, send to Drive, put this in Drive. Also Hebrew: \"תעלה לדרייב\", \"שמור בדרייב\", \"העלה לגוגל דרייב\". Use proactively when a workflow produces a file the user might want in Drive."
}
Google Drive Upload
Upload files directly from Claude to Google Drive using a simple Google Apps Script.
When to Use This Skill
- User asks to upload, save, or send a file to Google Drive
- A workflow produces a file the user might want stored in Drive
- User mentions Drive in any language (English or Hebrew)
What This Skill Does
- Reads the user's config file (
~/.cowork-gdrive-config.json) - Base64-encodes the target file
- POSTs it to the deployed Google Apps Script
- Returns the Google Drive file URL
How to Use
Prerequisites (One-Time Setup)
- Deploy the included Google Apps Script as a web app
- Create
~/.cowork-gdrive-config.jsonwith your script URL and API key
Basic Usage
Ask Claude naturally:
- "Upload this report to Google Drive"
- "Save the presentation in Clients/Acme on Drive"
- "תעלה את זה לדרייב"
Upload Workflow
```bash
Read config
cat "$HOME/.cowork-gdrive-config.json"
Encode and upload
FILE="/path/to/file" B64=$(base64 "$FILE" | tr -d '\n') MIME=$(file --mime-type -b "$FILE")
curl -s -L -H "Content-Type: application/json"
-d '{"fileName":"name","content":"'$B64'","mimeType":"'$MIME'","apiKey":"KEY"}'
"SCRIPT_URL"
```
Example
User: "Upload this report to Google Drive"
Output: Claude encodes the file, uploads it via the Apps Script, and returns: "Uploaded successfully! Here's your file: https://drive.google.com/file/d/abc123/view"
Tips
- Use
folderPathto organize files into folders (e.g., "Clients/Acme") - Add
"replaceExisting": trueto overwrite instead of duplicating - Hebrew filenames are fully supported
- Max file size is ~50MB (Google Apps Script limit)
Source
Full plugin with setup guide and Apps Script code: https://github.com/msmobileapps/google-drive-upload-plugin
Built by MSApps — AI Automation & Application Development
Version History
- 502fc01 Current 2026-07-05 15:04


