Loading...
Loading...
Retrieve chat message history, send messages, and manage reactions in Lark - get messages from group chats, private chats, threads, send messages to users or chats, and add/list/remove reactions. Use when user asks about chat messages, conversation history, what was discussed in a group, or wants to send a message or react.
npx skill4agent add yjwong/lark-cli messageslark--image{{image}}--parent-id--root-idlark msg send --to user@example.com --text "Hello!"lark msg send --to oc_12345 --parent-id om_abcdef --msg-type text --text "Replying here"lark msg history --chat-id oc_12345 --limit 10lark chat search "project team"lark msg react --message-id om_123456789abcdef --reaction SMILE
lark msg react list --message-id om_123456789abcdef
lark msg react remove --message-id om_123456789abcdef --reaction-id ZCaCIjUBVVWSrm5L-3ZTw...lark msg resource --message-id om_xxx --file-key img_v3_xxx --type image --output ./image.pnglarklark msg <command>
lark chat <command>
# Or with explicit config:
LARK_CONFIG_DIR=/path/to/.lark lark msg <command>lark chat search "project" --limit 10--limitchats[]chat_idnamedescriptionowner_idexternalchat_statuscountquerylark msg send --to ou_xxxx --text "Hello!"lark msg send --to oc_xxxx --parent-id om_xxxx --msg-type text --text "Replying here"--to--to-typeopen_iduser_idemailchat_id--text{{image}}--image--msg-typeposttext--parent-id--root-id{
"success": true,
"message_id": "om_dc13264520392913993dd051dba21dcf",
"chat_id": "oc_xxxxx",
"create_time": "2026-01-14T10:30:00+08:00"
}lark msg history --chat-id oc_xxxxx --limit 50 --sort desc--chat-id--typechatthread--start--end--sortascdesc--limitmessages[]message_idmsg_typecontentsendercreate_timementionsis_replythread_iddeletedcountchat_idlark msg react --message-id om_dc13264520392913993dd051dba21dcf --reaction SMILE--message-id--reaction--typeemoji{
"success": true,
"message_id": "om_dc13264520392913993dd051dba21dcf",
"reaction_type": "emoji",
"reaction_id": "ZCaCIjUBVVWSrm5L-3ZTw...",
"emoji_type": "SMILE"
}SMILELAUGH--parent-idlark msg react emojis.lark/config.yamlcustom_emojis:
"7405453485858095136": "ez-pepe"custom_emojislark msg react list --message-id om_dc13264520392913993dd051dba21dcf --reaction SMILE --limit 50--message-id--reactionSMILE--limitmessage_idreactions[]countlark msg react remove --message-id om_dc13264520392913993dd051dba21dcf --reaction-id ZCaCIjUBVVWSrm5L-3ZTw...--message-id--reaction-idsuccessmessage_idreaction_typereaction_idemoji_typelark msg recall om_dc13264520392913993dd051dba21dcfsuccessmessage_idmsg resourcelark msg resource --message-id om_xxx --file-key img_v3_xxx --type image --output ./image.png
lark msg resource --message-id om_xxx --file-key file_v2_xxx --type file --output ./document.pdf--message-id--file-keyimage_keyfile_key--typeimagefile--outputsuccessmessage_idfile_keyoutput_pathcontent_typebytes_writtenmessage_idfile_key\n\t--text@{ou_xxx}{{image}}oc_thread_omt_lark msg react listreaction_id--to-typetextpostimagefileaudiomediastickerinteractiveshare_chatshare_userthread_idlark msg history --chat-id oc_xxxxx --limit 10 --sort desc
lark msg history --chat-id omt_1a3b99f9d2cfd982 --type threadis_reply: trueis_reply: false{
"error": true,
"code": "ERROR_CODE",
"message": "Description"
}AUTH_ERRORlark auth loginSCOPE_ERRORVALIDATION_ERRORAPI_ERRORmessagesSCOPE_ERRORlark auth login --add --scopes messageslark auth statusim:message:readonlyim:messageim:message:send_as_botim:message.reactions:readim:message.reactions:write_onlyom_