Google Workspace
Interact with Gmail, Google Calendar, and Google Drive via Google APIs.
Usage
/google-workspace gmail-search <query> [--max N]
/google-workspace gmail-send to:<email> subject:<subject> body:<body>
/google-workspace calendar-list [--days N]
/google-workspace calendar-create <title> <datetime> [--duration minutes]
/google-workspace drive-list [--folder <folderId>] [--max N]
/google-workspace drive-upload <filepath> [--folder <folderId>]
Actions
| Action | Description |
|---|---|
gmail-search |
Search Gmail messages by query |
gmail-send |
Send an email via Gmail |
calendar-list |
List upcoming calendar events |
calendar-create |
Create a new calendar event |
drive-list |
List files in Google Drive |
drive-upload |
Upload a file to Google Drive |
Setup
Set one of the following environment variables:
export GOOGLE_API_KEY=your-api-key
# or
export GOOGLE_CLIENT_ID=your-client-id
export GOOGLE_CLIENT_SECRET=your-client-secret
export GOOGLE_REFRESH_TOKEN=your-refresh-token
Examples
- Search emails:
/google-workspace gmail-search from:boss@company.com has:attachment - List events:
/google-workspace calendar-list --days 14 - List Drive files:
/google-workspace drive-list --max 20