Skip to main content

google-drive

Upload, download, and manage files in Google Drive via the Drive API using curl.

Source facts

Repository
ThinkfleetAI/thinkfleet-engine
Last source activity
February 1, 2026 at 16:21
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
google-drive
description
Upload, download, and manage files in Google Drive via the Drive API using curl.
metadata
{"thinkfleetbot":{"emoji":"📁","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# Google Drive File operations via Google Drive API v3. ## Environment Variables - `GOOGLE_ACCESS_TOKEN` - OAuth2 access token with `drive` scope ## List files ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files?pageSize=10&fields=files(id,name,mimeType,modifiedTime)" \ | jq '.files[]' ``` ## Download a file ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media" -o /tmp/downloaded-file ``` ## Upload a file ```bash curl -s -X POST \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ -F "metadata={\"name\":\"myfile.txt\"};type=application/json;charset=UTF-8" \ -F "file=@/tmp/myfile.txt" \ "https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart" \ | jq '{id, name}' ``` ## Search files ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files?q=name%20contains%20'report'&fields=files(id,name)" \ | jq '.files[]' ``` ## Notes - For large files (>5MB), use resumable upload. - Always confirm before deleting files.
View on GitHub