WeChat Send
name: wechat-send
by clk1st · published 2026-03-22
$ claw add gh:clk1st/clk1st-wechat-send---
name: wechat-send
description: "Automate sending text messages in the macOS WeChat desktop app by controlling the UI via AppleScript and JXA. This is NOT a WeChat chat channel for OpenClaw — it controls the WeChat GUI on your Mac to send messages on your behalf. Use when: (1) user asks to send a WeChat message to someone, (2) notifying a WeChat contact, (3) batch messaging multiple contacts. Requires: WeChat for Mac installed, logged in, and window visible. macOS Accessibility permission granted to node. NOT for: reading or receiving WeChat messages, group chat management, file/image transfers, or using WeChat as a conversation channel with OpenClaw."
metadata: {"openclaw": {"os": ["darwin"], "author": "ryan_dream", "email": "ryanyang5@gmail.com"}}
---
# WeChat Send
Send messages to WeChat contacts by automating the macOS WeChat desktop app.
Prerequisites
Usage
Run the script:
bash scripts/wechat_send.sh "<contact_name>" "<message>"Examples
# Send a simple message
bash scripts/wechat_send.sh "Ryan" "你好!"
# Send a longer message
bash scripts/wechat_send.sh "Ellison" "明天下午3点开会,别忘了带文件"How It Works
1. Activates WeChat and opens search (Cmd+F)
2. Types the contact name, selects the first result (Enter), closes search (Escape)
3. Clicks the message input field using JXA CGEvent mouse simulation
4. Pastes the message from clipboard (Cmd+V) and sends (Enter)
Limitations
Troubleshooting
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...