Loading...
Loading...
飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员时使用。
npx skill4agent add larksuite/cli lark-im../lark-shared/SKILL.mdmessage_idchat_idthread_idChat (oc_xxx)
├── Message (om_xxx)
│ ├── Thread (reply thread)
│ ├── Reaction (emoji)
│ └── Resource (image / file / video / audio)
└── Member (user / bot)--as useruser_access_token--as bottenant_access_tokenuserbot--as bot+chat-messages-list+threads-messages-list+messages-mget--as userinteractivelark-cli im +<verb> [flags]| Shortcut | 说明 |
|---|---|
| Create a group chat with bot identity; bot-only; creates private/public chats, invites users/bots, optionally sets bot manager |
| List messages in a chat or P2P conversation; user/bot; accepts --chat-id or --user-id, resolves P2P chat_id, supports time range/sort/pagination |
| Search visible group chats by keyword and/or member open_ids (e.g. look up chat_id by group name); user/bot; supports member/type filters, sorting, and pagination |
| Update group chat name or description; user/bot; updates a chat's name or description |
| Batch get messages by IDs; user/bot; fetches up to 50 om_ message IDs, formats sender names, expands thread replies |
| Reply to a message (supports thread replies) with bot identity; bot-only; supports text/markdown/post/media replies, reply-in-thread, idempotency key |
| Download images/files from a message; user/bot; downloads image/file resources by message-id and file-key to a safe relative output path |
| Search messages across chats (supports keyword, sender, time range filters) with user identity; user-only; filters by chat/sender/attachment/time, enriches results via mget and chats batch_query |
| Send a message to a chat or direct message with bot identity; bot-only; sends to chat-id or user-id with text/markdown/post/media, supports idempotency key |
| List messages in a thread; user/bot; accepts om_/omt_ input, resolves message IDs to thread_id, supports sort/pagination |
lark-cli schema im.<resource>.<method> # 调用 API 前必须先查看参数结构
lark-cli im <resource> <method> [flags] # 调用 API重要:使用原生 API 时,必须先运行查看schema/--data参数结构,不要猜测字段格式。--params
createbottenant_access_tokengetuserbotlinkuserbotlistuserbotupdateuserbotcreateuserbotbotim:chat:operate_as_ownergetuserbotdeleteuserbotbotforwardbottenant_access_tokenmerge_forwardbottenant_access_tokenread_usersbottenant_access_tokenbatch_queryuserbotcreateuserbotdeleteuserbotlistuserbotcreatebottenant_access_tokencreateuserbotdeleteuserbotlistuserbot| 方法 | 所需 scope |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |