Xpersona
G

Gws Gmail Watch

CLAWHUB · Unverified

Gmail: Watch for new emails and stream them as NDJSON. Skill: Gws Gmail Watch Owner: googleworkspace-bot Summary: Gmail: Watch for new emails and stream them as NDJSON. Tags: latest:1.0.12 Version history: v1.0.12 | 2026-03-31T18:34:15.065Z | auto - Bumped skill version from 0.22.4 to 0.22.5 in SKILL.md. - No other changes were made. v1.0.11 | 2026-03-31T18:22:18.762Z | auto - Bumped metadata version from 0.22.3 to 0.22.4 in SKILL.md. - No other functional or usage chang

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17d07d7j6wvs7e49gkh2nncms83fh1m:gws-gmail-watch
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-googleworkspace-bot-gws-gmail-watch/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

26,548 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: gws-gmail-watch
description: "Gmail: Watch for new emails and stream them as NDJSON."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws gmail +watch --help"
---

# gmail +watch

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

Watch for new emails and stream them as NDJSON

## Usage

```bash
gws gmail +watch
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--project` | — | — | GCP project ID for Pub/Sub resources |
| `--subscription` | — | — | Existing Pub/Sub subscription name (skip setup) |
| `--topic` | — | — | Existing Pub/Sub topic with Gmail push permission already granted |
| `--label-ids` | — | — | Comma-separated Gmail label IDs to filter (e.g., INBOX,UNREAD) |
| `--max-messages` | — | 10 | Max messages per pull batch |
| `--poll-interval` | — | 5 | Seconds between pulls |
| `--msg-format` | — | full | Gmail message format: full, metadata, minimal, raw |
| `--once` | — | — | Pull once and exit |
| `--cleanup` | — | — | Delete created Pub/Sub resources on exit |
| `--output-dir` | — | — | Write each message to a separate JSON file in this directory |

## Examples

```bash
gws gmail +watch --project my-gcp-project
gws gmail +watch --project my-project --label-ids INBOX --once
gws gmail +watch --subscription projects/p/subscriptions/my-sub
gws gmail +watch --project my-project --cleanup --output-dir ./emails
```

## Tips

- Gmail watch expires after 7 days — re-run to renew.
- Without --cleanup, Pub/Sub resources persist for reconnection.
- Press Ctrl-C to stop gracefully.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands

_meta.json

{
  "ownerId": "kn72jx596hyjxmgxfp52s71ets828hj5",
  "slug": "gws-gmail-watch",
  "version": "1.0.12",
  "publishedAt": 1774982055065
}

skill-card.md

## Description:

Gmail: Watch for new emails and stream them as NDJSON.

This skill is ready for commercial/non-commercial use.

## Publisher:

[googleworkspace-bot](https://clawhub.ai/user/googleworkspace-bot)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and workspace operators use this skill to have an agent guide Gmail watch sessions with the gws CLI, including Pub/Sub setup choices, label filters, polling, cleanup, and optional local JSON message output.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The workflow can involve sensitive Gmail content and GCP Pub/Sub access.

Mitigation: Install and use it only when the gws CLI is authorized for the intended mailbox and GCP project.

Risk: The --output-dir option can store email contents locally.

Mitigation: Use a controlled output directory and handle generated JSON files according to the applicable data retention and access rules.

Risk: The --cleanup option removes watch-session Pub/Sub resources on exit.

Mitigation: Use --cleanup only when the created Pub/Sub resources should be deleted after the watch session.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/googleworkspace-bot/skills/gws-gmail-watch)
- [gws-shared](../gws-shared/SKILL.md)
- [gws-gmail](../gws-gmail/SKILL.md)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown with inline bash commands, flag descriptions, and operational guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May describe Gmail and GCP Pub/Sub command options, including local JSON output paths and cleanup behavior.]

## Skill Version(s):

1.0.12 (source: ClawHub release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Gws Gmail Watch and adjacent AI workflows.