Loading...
Loading...
WeCom message skill. It provides capabilities including session list query, message record pulling (supports text/image/file/voice/video), multimedia file acquisition and text message sending. It is triggered when users need to "view messages", "check chat history", "send a message to someone", "what messages have I received recently", "send a message to the group", "check what pictures/files have been sent".
npx skill4agent add wecomteam/wecom-cli wecomcli-get-msgis a command-line program provided by WeCom, all operations are completed by executing thewecom-clicommand.wecom-cli
wecom-cli msg <interface name> '<json parameter>'wecom-cli msg get_msg_chat_list '{"begin_time": "2026-03-11 00:00:00", "end_time": "2026-03-17 23:59:59"}'wecom-cli msg get_message '{"chat_type": 1, "chatid": "zhangsan", "begin_time": "2026-03-17 09:00:00", "end_time": "2026-03-17 18:00:00"}'wecom-cli msg get_msg_media '{"media_id": "MEDIAID_xxxxxx"}'local_pathwecom-cli msg send_message '{"chat_type": 1, "chatid": "zhangsan", "msgtype": "text", "text": {"content": "hello world"}}'YYYY-MM-DD HH:mm:ssget_msg_chat_listchat_namechatsget_msg_chat_listchat_type=2chat_type=1wecomcli-lookup-contact get_userlistget_msg_chat_listhas_moretruechatidchat_typeget_messageget_userlistwecomcli-lookup-contactmsgtypetextuseridName [Time]: ContentName [Time]:[Image]Name [Time]:[File] File nameName [Time]:[Voice] Voice contentName [Time]:[Video]get_msg_medialocal_pathlocal_pathcontent_typenameget_msg_mediascreenshotscreenshot.pngcontent_typeimage/png.pngapplication/pdf.pdfaudio/amr.amrvideo/mp4.mp4content_typecontent_typeMEDIA:MEDIA:📁 Files have been downloaded to the following locations:
- Image:
xxx/yyy.png- File:
xxx/yyy.pdfYou can find all downloaded files in thedirectory.xxx/yyy/
local_pathnext_cursorchatidchat_typesend_messagemsgtypetextchatidchat_type