G

gws-gmail-watch

by @googleworkspacev
4.6(276)

Gmail受信トレイの新しいメールを監視し、その内容をNDJSON形式でストリーミングします。

gmail-apiemail-event-monitoringwebhook-integrationreal-time-notificationsgoogle-workspaceGitHub
インストール方法
npx skills add googleworkspace/cli --skill gws-gmail-watch
compare_arrows

Before / After 効果比較

1
使用前

以前は、Gmailの受信トレイで新しいメールを取得するには、通常、手動での更新または定期的なポーリングが必要でした。リアルタイムでの応答は不可能で、情報処理に遅延が生じていました。

使用後

現在、この機能により、Gmailの受信トレイをリアルタイムで監視できます。新しいメールが到着するとすぐに、その内容はNDJSON形式でストリーミングされ、即時処理と自動応答が可能になります。

SKILL.md

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

gws gmail +watch

Flags

FlagRequiredDefaultDescription
--projectGCP project ID for Pub/Sub resources
--subscriptionExisting Pub/Sub subscription name (skip setup)
--topicExisting Pub/Sub topic with Gmail push permission already granted
--label-idsComma-separated Gmail label IDs to filter (e.g., INBOX,UNREAD)
--max-messages10Max messages per pull batch
--poll-interval5Seconds between pulls
--msg-formatfullGmail message format: full, metadata, minimal, raw
--oncePull once and exit
--cleanupDelete created Pub/Sub resources on exit
--output-dirWrite each message to a separate JSON file in this directory

Examples

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

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数19.3K
評価4.6 / 5.0
バージョン
更新日2026年5月23日
比較事例1 件

ユーザー評価

4.6(276)
5
23%
4
51%
3
23%
2
2%
1
0%

この Skill を評価

0.0

対応プラットフォーム

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

タイムライン

作成2026年3月16日
最終更新2026年5月23日