mcpField
G
google-drive-upload

google-drive-upload

github.com/davepoonProductivity3.7k95 installsUpdated today
Repository

About google-drive-upload

google-drive-upload is a Claude skill for sending files to Google Drive through a deployed Google Apps Script. It reads a local configuration, uploads encoded file contents, and returns the Drive URL.

Key features

  1. 01Upload files through Apps Script
  2. 02Save files to specified folders
  3. 03Replace existing files
  4. 04Support Hebrew filenames

Use cases

  1. 01Save a generated report to Drive
  2. 02Upload a presentation to a folder
  3. 03Replace an existing Drive file

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/davepoon/buildwithclaude --skill google-drive-upload

After installing, type/google-drive-uploadin Claude Code to confirm it loaded.

Details

From the project README

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

  1. Reads the user's config file (~/.cowork-gdrive-config.json)
  2. Base64-encodes the target file
  3. POSTs it to the deployed Google Apps Script
  4. Returns the Google Drive file URL

How to Use

Prerequisites (One-Time Setup)
  1. Deploy the included Google Apps Script as a web app
  2. Create ~/.cowork-gdrive-config.json with 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 folderPath to organize files into folders (e.g., "Clients/Acme")
  • Add "replaceExisting": true to 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

Comments

Markdown supported