gws-events
できること
このツールは、Google Workspaceのイベント通知を管理するためのものです。アカウントで起きていることについてのアラートを受け取るための購読を、作成・表示・更新・削除できます。
使う場面
- ✓新しいGmailのメッセージが届いたときに通知を受け取りたいとき。
- ✓Google Driveのファイルが更新されたことを知りたいとき。
- ✓Googleカレンダーの予定に関するアラートを受け取りたいとき。
スキルのリンク
https://github.com/googleworkspace/cli/blob/main/skills/gws-events/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“プライマリの受信トレイに新しいメールが届いたら、必ず通知してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
追跡したいイベントの種類(新着メッセージなど)を指定すると、ツールがGoogle Workspaceに設定を行い、その情報を送ってくれるようになります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
events (v1)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws events <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+subscribe |
Subscribe to Workspace events and stream them as NDJSON |
+renew |
Renew/reactivate Workspace Events subscriptions |
API Resources
message
stream— SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.
operations
get— Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
subscriptions
create— Creates a Google Workspace subscription. To learn how to use this method, see Create a Google Workspace subscription.delete— Deletes a Google Workspace subscription. To learn how to use this method, see Delete a Google Workspace subscription.get— Gets details about a Google Workspace subscription. To learn how to use this method, see Get details about a Google Workspace subscription.list— Lists Google Workspace subscriptions. To learn how to use this method, see List Google Workspace subscriptions.patch— Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a Google Workspace subscription.reactivate— Reactivates a suspended Google Workspace subscription. This method resets your subscription'sStatefield toACTIVE. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see Reactivate a Google Workspace subscription.
tasks
cancel— Cancel a task from the agent. If supported one should expect no more task updates for the task.get— Get the current state of a task from the agent.subscribe— TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.pushNotificationConfigs— Operations on the 'pushNotificationConfigs' resource
Discovering Commands
Before calling any API method, inspect it:
# Browse resources and methods
gws events --help
# Inspect a method's required params, types, and defaults
gws schema events.<resource>.<method>
Use gws schema output to build your --params and --json flags.
よくある質問
「購読」とは何ですか?
購読とは、特定の出来事が起きたときにGoogle Workspaceからお知らせを受け取るための取り決めのようなものです。
受け取るイベントを選ぶことはできますか?
はい、興味のあるイベントの種類を指定できます。
通知が正しく動作しているかどうかは、どうすればわかりますか?
購読の状態を確認すると、有効になっていてイベントを受け取れているかをチェックできます。
詳細
人気
- GitHubのスター
- 32k
- ランキング
- #9165
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/6
コメント
- …
このリポジトリの他のスキル
gws-admin-reports
32kエージェントがGoogle Workspaceのアクティビティレポートを取得できるようにします。監査データや利用データを収集します。
gws-calendar-agenda
32kエージェントがすべてのカレンダーの今後の予定を確認できるようにします。スケジュールを整理し、これからの予定を把握するのに役立ちます。
gws-calendar-insert
32kエージェントがGoogle Calendarに新しい予定を作成できるようにします。打ち合わせや予約の登録に役立ちます。
gws-calendar
32kエージェントがカレンダーと予定を管理できるようにします。仕事やプライベートの予定を整理するのに役立ちます。