SuperAPI AI 工具集

wacli

办公与效率

查看项目

更新于 10-16 00:00

技能介绍

用途:wacli 是 WhatsApp 命令行工具。仅在用户明确要求你给其他人在 WhatsApp 上发消息,或要求同步/搜索 WhatsApp 历史时使用;普通用户聊天由 OpenClaw 自动路由,不要用它。

主要能力:认证与同步(wacli auth 扫码登录并初次同步、wacli sync --follow 持续同步、wacli doctor);查找聊天与消息(wacli chats list --limit 20 --query "name or number"、wacli messages search "query" --limit 20 --chat <jid>、wacli messages search "invoice" --after 2025-01-01 --before 2025-12-31);历史回填(wacli history backfill --chat <jid> --requests 2 --count 50);发送(文本 wacli send text --to "+14155551212" --message "Hello! Are you free at 3pm?"、群组 wacli send text --to "1234567890-123456789@g.us" --message "Running 5 min late."、文件 wacli send file --to "+14155551212" --file /path/agenda.pdf --caption "Agenda")。

安全要求:发送前必须有明确收件人与消息文本,并在发送前确认收件人与内容;如有歧义先提问澄清。

备注与限制:存储目录为 ~/.wacli(可用 --store 覆盖);解析时可用 --json 获得机器可读输出;回填需要手机在线,结果为尽力而为。JID 格式:直接聊天为 <number>@s.whatsapp.net,群组为 <id>@g.us,可用 wacli chats list 查找。其余细节暂未提供。