| name | google-drive |
| version | 1.0.0 |
| tier | business-ops |
| description | File management for small businesses. Organize invoices, contracts, SOPs, product photos, and team documents. Search, upload, share, and manage permissions. Built on the gws CLI. |
| requires | {"bins":["gws"],"skills":["google-workspace"]} |
Google Drive
File management built for how small businesses actually organize documents.
Uses the gws CLI for all Drive operations. See the google-workspace skill for setup.
Triggers
- "find a file"
- "upload to drive"
- "share this document"
- "organize files"
- "list my drive files"
- Any request involving file storage, sharing, or organization
Prerequisites
gws CLI installed and authenticated with Drive scope
- Run
gws auth login -s drive if not already done
Core Commands
gws drive +upload
gws drive files list
gws drive files get
gws drive files create
gws drive files export
Common Operations
List recent files
gws drive files list --params '{"pageSize": 10, "orderBy": "modifiedTime desc"}' --format table
gws drive files list --params '{"q": "name contains '\''invoice'\''", "pageSize": 20}'
Upload a file
gws drive +upload
gws drive files create \
--params '{"uploadType": "multipart"}' \
--json '{"name": "Q1-Report.pdf", "parents": ["FOLDER_ID"]}' \
--upload ./Q1-Report.pdf
Download / Export
gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o ./downloaded-file.pdf
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o ./document.pdf
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "text/csv"}' -o ./data.csv
Create a folder
gws drive files create --json '{
"name": "2026 Invoices",
"mimeType": "application/vnd.google-apps.folder",
"parents": ["PARENT_FOLDER_ID"]
}'
Share a file
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "writer",
"type": "user",
"emailAddress": "person@example.com"
}'
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "reader",
"type": "user",
"emailAddress": "person@example.com"
}'
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "reader",
"type": "anyone"
}'
Search with Drive query syntax
gws drive files list --params '{"q": "mimeType=\"application/pdf\""}'
gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}'
gws drive files list --params '{"q": "modifiedTime > '\''2026-01-08T00:00:00'\''", "orderBy": "modifiedTime desc"}'
gws drive files list --params '{"q": "sharedWithMe = true", "pageSize": 10}'
gws drive files list --params '{"q": "quotaBytesUsed > 10000000", "orderBy": "quotaBytesUsed desc", "pageSize": 20, "fields": "files(name,size,quotaBytesUsed,modifiedTime)"}'
SMB File Organization
Recommended folder structure
My Drive/
โโโ Business Operations/
โ โโโ SOPs/ # Standard operating procedures
โ โโโ Checklists/ # Opening/closing, inventory, etc.
โ โโโ Policies/ # Employee handbook, safety, etc.
โโโ Finance/
โ โโโ Invoices/
โ โ โโโ 2026/
โ โ โ โโโ January/
โ โ โ โโโ February/
โ โ โโโ 2024/
โ โโโ Receipts/
โ โโโ Tax Documents/
โ โโโ Reports/
โโโ Customers/
โ โโโ Contracts/
โ โโโ Correspondence/
โ โโโ Orders/
โโโ Vendors/
โ โโโ Agreements/
โ โโโ Price Lists/
โ โโโ Invoices Received/
โโโ Marketing/
โ โโโ Photos/
โ โโโ Ad Creatives/
โ โโโ Campaigns/
โโโ Team/
โโโ Meeting Notes/
โโโ Schedules/
โโโ Training Materials/
Create this structure automatically
for folder in "Business Operations" "Finance" "Customers" "Vendors" "Marketing" "Team"; do
gws drive files create --json "{\"name\": \"$folder\", \"mimeType\": \"application/vnd.google-apps.folder\"}"
done
Integration with Other Skills
gmail โ Save email attachments to Drive
google-sheets โ Drive is where sheets live
google-docs โ Drive is where docs live
google-chat โ Share Drive files in Chat spaces
morning-briefing โ Reference important docs in daily briefing
Tips
- Use
--format json and pipe to jq for extracting specific fields
- Always use
--dry-run before delete operations
- Use
--page-all for complete file listings (auto-paginates)
- Google Drive search syntax is powerful โ use
q parameter for precise queries
- Export Google-native files (Docs, Sheets) before downloading โ they have no binary content
Related Skills
google-workspace โ Required setup (install and auth)
google-sheets โ Spreadsheet operations
google-docs โ Document operations
gmail โ Email attachment management
Your Drive is your filing cabinet. Keep it organized and your agent can find anything.