WeChat is a native macOS app (not Electron), so uses AppleScript + clipboard: - status: check if running + window count - send: clipboard paste + Enter - read: Cmd+A → Cmd+C with clipboard backup/restore - search: Cmd+F + type query - chats: switch to chats tab (Cmd+1) - contacts: switch to contacts tab (Cmd+2) Includes adapter READMEs (EN+ZH). Total: 30 sites · 157 commands
1.1 KiB
1.1 KiB
WeChat (微信) Desktop Adapter
Control WeChat Mac Desktop from the terminal via AppleScript + Accessibility API.
Note: WeChat is a native macOS app (not Electron), so CDP is not available. This adapter uses AppleScript keyboard simulation and clipboard operations.
Prerequisites
- WeChat must be running and logged in
- Terminal must have Accessibility permission (System Settings → Privacy & Security → Accessibility)
Commands
| Command | Description |
|---|---|
wechat status |
Check if WeChat is running |
wechat send "msg" |
Send message in the active chat (clipboard paste + Enter) |
wechat read |
Read current chat content (Cmd+A → Cmd+C) |
wechat search "keyword" |
Open search and type a query (Cmd+F) |
wechat chats |
Switch to Chats tab (Cmd+1) |
wechat contacts |
Switch to Contacts tab (Cmd+2) |
Limitations
- No CDP support — WeChat is native Cocoa, not Electron
sendrequires the correct conversation to be already openreadcaptures whatever is visible via select-all + copysearchtypes the query but cannot programmatically click results