Resources
7Install
npx skillscat add imoonkey/openweb/src-sites-whatsapp Install via the SkillsCat registry.
SKILL.md
WhatsApp Web
Overview
Messaging platform — L3 adapter accessing Meta's internal module system via require('WAWeb*').
Workflows
List and read conversations
getChats→ pick chat →chatIdgetMessages(chatId)→ messages with body, timestamp, type
Find a specific chat
searchChats(query)→ matching chats →chatIdgetChatById(chatId)→ detailed info (archived, pinned, muted, lastMessage)
Send a message
getChatsorsearchChats(query)→chatIdsendMessage(chatId, message)→ success + timestamp
Delete a message
getChatsorsearchChats(query)→chatIdgetMessages(chatId)→ pick message →messageIddeleteMessage(chatId, messageId)→ success
Mark chat as read
getChatsorsearchChats(query)→chatIdmarkAsRead(chatId, read: true)→ success
Operations
| Operation | Intent | Key Input | Key Output | Notes |
|---|---|---|---|---|
| getChats | list conversations | limit | id, name, isGroup, unreadCount | entry point |
| getMessages | read messages | chatId ← getChats | id, body, fromMe, timestamp, type | most recent N messages |
| getContacts | list contacts | limit | id, name, isMe | entry point |
| searchChats | find chats by name | query | id, name, isGroup | client-side filter |
| getChatById | chat detail | chatId ← getChats | archived, pinned, muted, lastMessage | |
| sendMessage | send text | chatId ← getChats, message | success, timestamp | write — internal module sendTextMsgToChat |
| deleteMessage | delete message | chatId ← getChats, messageId ← getMessages | success | write/caution — internal module chat.deleteMessages() |
| markAsRead | mark read/unread | chatId ← getChats, read | success | write |
Quick Start
# List recent chats
openweb whatsapp exec getChats '{"limit": 10}'
# Read messages from a chat
openweb whatsapp exec getMessages '{"chatId": "1234567890@c.us", "limit": 20}'
# Search for a chat
openweb whatsapp exec searchChats '{"query": "John"}'
# Get chat details
openweb whatsapp exec getChatById '{"chatId": "1234567890@c.us"}'
# Delete a message (reverse of sendMessage)
openweb whatsapp exec deleteMessage '{"chatId": "1234567890@c.us", "messageId": "true_1234567890@c.us_ABCDEF"}'
# List contacts
openweb whatsapp exec getContacts '{"limit": 50}'