Search, list, and retrieve Google Drive files using gws CLI. Use this skill when any Founder OS plugin needs to find, read, or export Drive files — replaces Google Drive MCP server read operations.
From founder-osnpx claudepluginhub thecloudtips/founder-os --plugin founder-osThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Drive read operations via gws CLI. Covers searching, listing, retrieving metadata, and exporting file content.
drive.readonly (minimum), drive (for full access)# Search by name
gws drive files list --params '{
"q": "name contains '\''report'\''",
"pageSize": 20,
"fields": "files(id,name,mimeType,modifiedTime,webViewLink)"
}' --format json
Query syntax (Drive search operators):
name contains 'term' — filename contains wordmimeType = 'application/vnd.google-apps.document' — Google Docs onlymimeType = 'application/vnd.google-apps.spreadsheet' — Sheets onlymimeType = 'application/pdf' — PDFs only'FOLDER_ID' in parents — files in specific foldermodifiedTime > '2026-03-01T00:00:00' — modified after datetrashed = false — exclude trashed filesand / orCommon MIME types:
application/vnd.google-apps.document — Google Docapplication/vnd.google-apps.spreadsheet — Google Sheetapplication/vnd.google-apps.presentation — Google Slidesapplication/vnd.google-apps.folder — Folderapplication/pdf — PDFgws drive files get --params '{
"fileId": "FILE_ID",
"fields": "id,name,mimeType,modifiedTime,size,webViewLink,parents"
}' --format json
gws drive files export --params '{"fileId":"FILE_ID","mimeType":"text/plain"}' --output /tmp/doc.txt
Export MIME types:
text/plain — plain textapplication/pdf — PDFtext/csv — CSV (for Sheets)application/vnd.openxmlformats-officedocument.wordprocessingml.document — DOCXapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet — XLSXgws drive files get --params '{"fileId":"FILE_ID","alt":"media"}' --output /tmp/downloaded-file.pdf
gws drive files list --params '{
"q": "'\''FOLDER_ID'\'' in parents and trashed = false",
"pageSize": 50,
"fields": "files(id,name,mimeType,modifiedTime)"
}' --format json
gws drive files list --params '{
"q": "mimeType = '\''application/vnd.google-apps.document'\'' and modifiedTime > '\''2026-03-01T00:00:00'\'' and trashed = false",
"pageSize": 10,
"orderBy": "modifiedTime desc",
"fields": "files(id,name,modifiedTime,webViewLink)"
}' --format json
# Step 1: Export to temp file
gws drive files export --params '{"fileId":"FILE_ID","mimeType":"text/plain"}' --output /tmp/doc-content.txt
# Step 2: Read content
cat /tmp/doc-content.txt
If Drive is unavailable, return:
{"source": "drive", "status": "unavailable", "reason": "gws CLI not found or auth expired"}