--- name: google-workspace description: > Manage Google Workspace via the gws CLI — Drive, Gmail, Sheets, Docs, Slides, People, Chat, Meet, Forms, and cross-service workflows. Use when asked to send email, read/write spreadsheets, upload files to Drive, manage contacts, create presentations, send Chat messages, create docs, or any Google Workspace operation. Also triggers on "gws", "Google Drive", "Google Sheets", "Gmail", "Google Docs", "Google Slides", "Google Chat", "Google Meet", "Google Forms", "check my inbox", "upload to Drive", "read spreadsheet", "send an email", "create a doc", "send a chat message", "create a presentation". --- # Google Workspace CLI (`gws`) Interact with Google Workspace services via the `gws` CLI. This skill covers all supported services, helper shortcuts, cross-service workflows, role-based personas, and multi-step recipes. ## Installation & Auth The `gws` binary must be on `$PATH`. Version: 0.16.0+. ```bash # Browser-based OAuth (interactive) gws auth login # Service Account export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json # Check status gws auth status ``` ### Auth Flags | Flag | Description | |------|-------------| | `--readonly` | Request read-only scopes | | `--full` | Request all scopes incl. pubsub + cloud-platform | | `--scopes` | Comma-separated custom scopes | | `-s, --services` | Limit scope picker to specific services (e.g. `-s drive,gmail`) | ## CLI Syntax ```bash gws [sub-resource] [flags] ``` ### Global Flags | Flag | Description | |------|-------------| | `--format ` | Output format: `json` (default), `table`, `yaml`, `csv` | | `--dry-run` | Validate locally without calling the API | | `--sanitize