Google Workspace CLI — Gmail, Calendar, Drive, Contacts, Sheets, and Docs via the gog command-line tool. Use when the user asks to send email, search Gmail, check calendar events, manage Google Drive files, read or edit Google Sheets, export Google Docs, or look up contacts.
Powered by gog — a Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
Install gog:
brew install steipete/tap/gogcli
Create OAuth credentials at Google Cloud Console (Desktop App), download client_secret.json.
Authenticate:
gog auth credentials /path/to/client_secret.json
gog auth add you@gmail.com --services gmail,calendar,drive,contacts,sheets,docs
Optionally set GOG_ACCOUNT=you@gmail.com to skip --account on each call.
| Action | Command |
|--------|---------|
| Search mail | gog gmail search 'newer_than:7d' --max 10 |
| Send email | gog gmail send --to user@example.com --subject "Hi" --body "Hello" |
| Read message | gog gmail read <message_id> |
| Mark as read | gog gmail labels modify <message_id> --remove UNREAD |
| List labels | gog gmail labels list |
| Action | Command |
|--------|---------|
| List events | gog calendar events --from 2026-02-23 --to 2026-02-28 |
| Create event | gog calendar create --title "Meeting" --start "2026-02-24T10:00" --end "2026-02-24T11:00" |
| Action | Command |
|--------|---------|
| Search files | gog drive search "query" --max 10 |
| List files | gog drive list --max 20 |
| Download | gog drive download <file_id> --out /tmp/file.pdf |
| Action | Command |
|--------|---------|
| Get data | gog sheets get <spreadsheet_id> "Sheet1!A1:D10" --json |
| Metadata | gog sheets metadata <spreadsheet_id> --json |
| Append rows | gog sheets append <spreadsheet_id> "Sheet1!A:C" --values-json '[["x","y","z"]]' |
| Update cells | gog sheets update <spreadsheet_id> "Sheet1!A1:B2" --values-json '[["A","B"],["1","2"]]' |
| Clear range | gog sheets clear <spreadsheet_id> "Sheet1!A2:Z" |
| Action | Command |
|--------|---------|
| Read content | gog docs cat <document_id> |
| Export | gog docs export <document_id> --format txt --out /tmp/doc.txt |
| Copy | gog docs copy <document_id> --title "Copy of Doc" |
| Action | Command |
|--------|---------|
| List contacts | gog contacts list --max 20 |
| Search | gog contacts search "name" |
--json and --no-input flagsGOG_ACCOUNT env var to skip --account on every commandgog auth list to check configured accountsnpx skills add ericwang915/Google Workspace CLI(gog)下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer