360 Secure SkillHub
360 安全技能中心

WhatsApp Contacts

通过 Node 脚本读取本地 Baileys WhatsApp 会话缓存,提供 list(按数量列出)、search(按姓名或电话搜索)和 get(按号码查询)三个命令,仅能获取曾与已连接账号互动过的联系人;需通过宿主执行命令调用,不涉及发送消息或修改联系人。

marcosrippel
marcosrippel
热度 87.67
最近更新 2026-05-17 12:21:43
分类:搜索依赖:代码执行 / 读写文件应用场景:CRM

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add whatsapp-contacts
Metadata
name
whatsapp-contacts
description
List, search, and lookup WhatsApp contacts from the Baileys session cache

WhatsApp Contacts Skill

Read and search contacts stored in the local Baileys WhatsApp session.

Usage

exec({ cmd: "node <skill_dir>/scripts/contacts.js COMMAND [ARGS]" })

Commands

List Contacts

exec({ cmd: "node <skill_dir>/scripts/contacts.js list 50" })

Search by Name or Phone

exec({ cmd: "node <skill_dir>/scripts/contacts.js search \"John\"" })

Get Contact Info

exec({ cmd: "node <skill_dir>/scripts/contacts.js get 5511999999999" })

Note

This skill reads contacts from the local Baileys session cache. Only contacts that have previously interacted with the connected account will be available.