$npx -y skills add googleworkspace/cli --skill gws-gmailGmail: Send, read, and manage email.
| 1 | # gmail (v1) |
| 2 | |
| 3 | > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. |
| 4 | |
| 5 | ```bash |
| 6 | gws gmail <resource> <method> [flags] |
| 7 | ``` |
| 8 | |
| 9 | ## Helper Commands |
| 10 | |
| 11 | | Command | Description | |
| 12 | |---------|-------------| |
| 13 | | [`+send`](../gws-gmail-send/SKILL.md) | Send an email | |
| 14 | | [`+triage`](../gws-gmail-triage/SKILL.md) | Show unread inbox summary (sender, subject, date) | |
| 15 | | [`+reply`](../gws-gmail-reply/SKILL.md) | Reply to a message (handles threading automatically) | |
| 16 | | [`+reply-all`](../gws-gmail-reply-all/SKILL.md) | Reply-all to a message (handles threading automatically) | |
| 17 | | [`+forward`](../gws-gmail-forward/SKILL.md) | Forward a message to new recipients | |
| 18 | | [`+read`](../gws-gmail-read/SKILL.md) | Read a message and extract its body or headers | |
| 19 | | [`+watch`](../gws-gmail-watch/SKILL.md) | Watch for new emails and stream them as NDJSON | |
| 20 | |
| 21 | ## API Resources |
| 22 | |
| 23 | ### users |
| 24 | |
| 25 | - `getProfile` — Gets the current user's Gmail profile. |
| 26 | - `stop` — Stop receiving push notifications for the given user mailbox. |
| 27 | - `watch` — Set up or update a push notification watch on the given user mailbox. |
| 28 | - `drafts` — Operations on the 'drafts' resource |
| 29 | - `history` — Operations on the 'history' resource |
| 30 | - `labels` — Operations on the 'labels' resource |
| 31 | - `messages` — Operations on the 'messages' resource |
| 32 | - `settings` — Operations on the 'settings' resource |
| 33 | - `threads` — Operations on the 'threads' resource |
| 34 | |
| 35 | ## Discovering Commands |
| 36 | |
| 37 | Before calling any API method, inspect it: |
| 38 | |
| 39 | ```bash |
| 40 | # Browse resources and methods |
| 41 | gws gmail --help |
| 42 | |
| 43 | # Inspect a method's required params, types, and defaults |
| 44 | gws schema gmail.<resource>.<method> |
| 45 | ``` |
| 46 | |
| 47 | Use `gws schema` output to build your `--params` and `--json` flags. |