← 返回
未分类 中文

Google Messages

Send and receive SMS/RCS via Google Messages web interface (messages.google.com). Use when asked to "send a text", "check texts", "SMS", "text message", "Google Messages", or forward incoming texts to other channels.
通过 Google Messages 网页界面(messages.google.com)发送和接收 SMS/RCS。用于响应“发送短信”、“查看短信”、或“转发收到的短信”等请求。
kesslerio kesslerio 来源
未分类 clawhub v0.1.0 1 版本 99721.1 Key: 无需
★ 0
Stars
📥 2,860
下载
💾 4
安装
1
版本
#latest

概述

Google Messages Browser Skill

Automate SMS/RCS messaging via messages.google.com using the browser tool.

Overview

Google Messages for Web allows you to send/receive texts from your Android phone via browser. This skill automates that interface.

Requirements:

  • Android phone with Google Messages app
  • Phone and computer on same network (for initial QR pairing)
  • Browser profile with persistent session (use openclaw or your preferred profile)

Note: Replace profile=openclaw in examples with your preferred browser profile if different.


Quick Reference

ActionCommand
-----------------
Open pairing pagebrowser action=open profile=openclaw targetUrl="https://messages.google.com/web/authentication"
Check sessionbrowser action=snapshot profile=openclaw — look for conversation list vs QR code
Take screenshotbrowser action=screenshot profile=openclaw

Initial Setup (QR Pairing)

First-time setup requires scanning a QR code:

  1. Open Google Messages Web

```

browser action=open profile=openclaw targetUrl="https://messages.google.com/web/authentication"

```

  1. Screenshot the QR code and share with user

```

browser action=screenshot profile=openclaw

```

  1. User scans with phone:
    • Open Google Messages app on Android
    • Tap ⋮ menu → "Device pairing" → "QR code scanner"
    • Scan the QR code
  1. Verify connection — snapshot should show conversation list, not QR code

Important: Enable "Remember this computer" to persist the session.


Sending Messages

  1. Navigate to conversations

```

browser action=navigate profile=openclaw targetUrl="https://messages.google.com/web/conversations"

```

  1. Take snapshot and find conversation

```

browser action=snapshot profile=openclaw

```

Look for the contact in the conversation list, note the ref.

  1. Click conversation

```

browser action=act profile=openclaw request={"kind": "click", "ref": ""}

```

  1. Type message (find textarea ref from snapshot)

```

browser action=act profile=openclaw request={"kind": "type", "ref": "", "text": "Your message"}

```

  1. Click send (find send button ref)

```

browser action=act profile=openclaw request={"kind": "click", "ref": ""}

```


Receiving Messages (Real-time Notifications)

This skill includes a webhook system for real-time incoming SMS notifications.

Components

  1. sms-webhook-server.js — receives notifications, forwards to OpenClaw channels
  2. sms-observer.js — browser script that watches for new messages

Setup

  1. Set environment variables:

```bash

export SMS_NOTIFICATION_TARGET="telegram:YOUR_CHAT_ID"

export SMS_NOTIFICATION_CHANNEL="telegram"

```

  1. Start webhook server:

```bash

node /sms-webhook-server.js

```

  1. Inject observer into browser (see references/observer-injection.md)

Systemd Service (Persistent)

cp <skill>/systemd/google-messages-webhook.service ~/.config/systemd/user/
# Edit service file: set SMS_NOTIFICATION_TARGET in Environment=
systemctl --user daemon-reload
systemctl --user enable --now google-messages-webhook

Reading Messages

See references/snippets.md for JavaScript snippets to:

  • Get recent conversations
  • Get messages in current conversation
  • Check session status

Troubleshooting

ProblemSolution
-------------------
QR code shownSession expired, re-pair
Elements not foundGoogle updated UI, check snapshot for new selectors
Send button disabledMessage input empty or phone disconnected
Observer not detectingCheck browser console for [SMS Observer] logs
Webhook not receivingVerify server running: curl http://127.0.0.1:19888/health

Selectors Reference

Google Messages uses Angular components. These may change with updates.

ElementSelector
-------------------
Conversation listmws-conversations-list
Conversation itemmws-conversation-list-item
Message inputtextarea[aria-label*="message"]
Send buttonbutton[aria-label*="Send"]
QR codemw-qr-code

Limitations

  • Phone must be online (messages sync through phone)
  • Browser tab must stay open for notifications
  • Session expires after ~14 days of inactivity
  • Observer lost on page reload (re-inject needed)

Security

  • Webhook listens on localhost only (127.0.0.1)
  • No credentials stored (session in browser cookies)
  • QR pairing links to your phone — treat as sensitive

License

Apache-2.0

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-06-07 05:22

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,732
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,232 📥 268,302
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 321,009