SuperAPI AI 工具集

wacli

通用与其它

查看项目

更新于 10-15 20:21

技能介绍

用途 wacli 是 WhatsApp 的命令行工具,仅在用户明确要求联系第三方或同步/搜索 WhatsApp 历史时使用。不要用它处理普通用户聊天,这类对话会被自动路由;如果用户正在 WhatsApp 上与你聊天,除非要求联系他人,否则不要调用它。

主要能力

  1. 认证与同步:wacli auth(扫码登录并初始同步)、wacli sync --follow(持续同步)、wacli doctor(诊断)。
  2. 查找聊天与消息: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。
  3. 历史回填:wacli history backfill --chat <jid> --requests 2 --count 50,需手机在线,结果为尽力而为。
  4. 发送消息:文本 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 查找。

限制 不要用于日常用户聊天;回填依赖手机在线且为尽力而为;其他功能、价格、平台与效果资料暂未提供。