Skip to main content

google-drive

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

ソース情報

リポジトリ
ThinkfleetAI/thinkfleet-engine
ソースの最終更新活動
2026年2月1日 16:21
検出された SKILL.md の言語
英語
スター
0
フォーク
0

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
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.
GitHubで見る