name: wechat-get-contact-list
拉取完整通讯录,返回三类 wxid:好友、群聊、公众号。
wechat-get-contact-detail 查昵称)API_BASE=$(node -e "console.log(JSON.parse(require('fs').readFileSync(require('path').join(require('os').homedir(),'.openclaw','wechat-credentials.json'),'utf8')).wechatApiBase)")
curl -s --max-time 15 -X POST "$API_BASE/contacts/list" \
-H "Content-Type: application/json" \
-d '{}'
{
"ret": 200,
"data": {
"friends": ["wxid_abc...", "wxid_def..."],
"chatrooms": ["12345@chatroom", "67890@chatroom"],
"ghs": ["gh_xxx..."]
}
}
wechat-get-contact-detail 传 wxids: [...]wechat-get-messages 传 wxid=...wechat-get-contact-detail 批量查