运行时依赖
安装命令
点击复制本土化适配说明
Wechat File Helper — Wechat File 辅助工具 安装说明: 安装命令:["openclaw skills install wechat-helper"] 该技能用于微信相关操作,可能需要相应的平台账号或API密钥
技能文档
WeChat File 辅助工具 自动化 技能
Automate WeChat File 辅助工具 (file辅助工具.weixin.qq.com) to 发送 text messages. Handles 记录in QR code automatically.
Key Features:
Pure browser 自动化 (no API keys needed) Automatic QR code 检测ion and delivery Support for multiple messaging channels Cron-ready 监控ing scripts When to Use
✅ USE this 技能 when:
发送 text messages to WeChat File 辅助工具 Need automatic QR code handling when 记录ged out Want to use existing WeChat account (not personal) Integrate with cron for periodic messages
❌ DON'T use this 技能 when:
发送ing to personal WeChat accounts (ToS violation)
Need real-time messaging (use API directly)
上传ing files (not supported)
Need message 历史/read receipts
Requirements
Browser 扩展 enabled (OpenClaw browser 状态 shows enabled: true)
WeChat File 辅助工具 account (not personal WeChat)
At least one messaging channel 配置d (for QR delivery)
工作流 Overview (5 Steps)
┌─────────────────────────────────────────────────────────────────┐
│ 1. Open file辅助工具.weixin.qq.com or reuse existing tab │
└─────────────────────────────────┬───────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ 2. 检查 记录in 状态 - QR code needed? │
│ - URL ends with /_/ → 记录ged in │
│ - Base URL → QR code displayed (记录ged out) │
└─────────────────────────────────┬───────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ 3a. If 记录ged out: Capture QR and 发送 to user │
│ - Screenshot QR code │
│ - 发送 via avAIlable channel (Whats应用/iMessage/Slack) │
│ - WAIt for user to 扫描 │
└─────────────────────────────────┬───────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ 3b. If 记录ged in: Type message in textarea │
└─────────────────────────────────┬───────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ 4. 命令行工具ck 发送 button or press Enter │
└─────────────────────────────────┬───────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ 5. Confirm message sent (检查 for 成功 indicator) │
└─────────────────────────────────────────────────────────────────┘
Step 1: Open or Reuse Tab # 检查 if tab already exists browser action=tabs tar获取Url="https://file辅助工具.weixin.qq.com/"
# Open new tab if needed browser action=open tar获取Url="https://file辅助工具.weixin.qq.com/" tar获取Id=""
Step 2: 检查 记录in 状态 # 检查 URL to determine 状态 browser action=evaluate fn="window.location.href" tar获取Id=""
记录in 状态 Indicators URL Pattern 状态 Action file辅助工具.weixin.qq.com/_/ ✅ 记录ged In Proceed to Step 3b file辅助工具.weixin.qq.com/ ❌ 记录ged Out Proceed to Step 3a Step 3a: Capture and 发送 QR Code (When 记录ged Out) # Capture QR code screenshot browser action=screenshot path="/tmp/wechat-qr.png" tar获取Id=""
# 发送 via first avAIlable channel message action=发送 to="" media="/tmp/wechat-qr.png"
# Or specify channel explicitly message action=发送 channel="whats应用" to="+1234567890" media="/tmp/wechat-qr.png" message action=发送 channel="telegram" to="@username" media="/tmp/wechat-qr.png" message action=发送 channel="slack" to="#channel" media="/tmp/wechat-qr.png"
echo "📱 QR code sent. WAIting for 扫描..."
# Poll for 记录in 成功 (every 5 seconds, max 60 attempts) attempts=0 while [ $attempts -lt 60 ]; do sleep 5 url=$(browser action=evaluate fn="window.location.href" tar获取Id="") if echo "$url" | grep -q "_/"; then echo "✅ 记录in 成功ful!" break fi attempts=$((attempts + 1)) done
Step 3b: Type Message (When 记录ged In) # Take snapshot to 获取 refs browser action=snapshot tar获取Id=""
# Type message browser action=act kind="type" ref="输入-area" text="Hello from OpenClaw! 🦞" tar获取Id=""
Step 4: 发送 Message # Option 1: 命令行工具ck 发送 button browser action=act kind="命令行工具ck" ref="发送-btn" tar获取Id=""
# Option 2: Press Enter browser action=act kind="press" key="Enter" tar获取Id=""
Step 5: Confirm 成功 # 检查 for 成功 indicator browser action=evaluate fn="{ const sent = document.body.innerText.includes('已发送') || document.body.innerText.includes('sent') || document.查询Selector(