Messages or entire threads can be shared to Lark chat without a documented pre-send confirmation
Source references: 3`+share-to-chat` creates a sharing credential and sends a card to a group or person, requiring mail-read and send-IM-as-user permissions. Unlike the mail sending flows, this reference does not require previewing the target chat, subject, or sharing scope and obtaining explicit approval first.
If a target ID is wrong, a fuzzy group match selects the wrong chat, or an agent mistakes message content for an instruction, a message or whole thread could be exposed to unintended people.
This shortcut sends an email or whole thread to a Lark group or person and requires mail-read plus send-as-user IM permissions. The reference offers dry-run but does not require a preview and confirmation of the mail, target chat, and sharing scope before execution. A wrong target ID could disclose mail to the wrong person or group. Users can ask the author to require an explicit preview and confirmation.
将邮件以卡片形式分享到飞书 IM 会话(群聊或个人对话)。内部两步完成:创建分享凭证 → 发送卡片到 IM。**依赖 Scope:** `mail:user_mailbox.message:readonly`、`im:message`、`im:message.send_as_user`Show 2 other places
```bash# 分享单封邮件到群聊(默认 receive-id-type=chat_id)lark-cli mail +share-to-chat --message-id <邮件ID> --receive-id oc_xxx# 分享整个会话到群聊lark-cli mail +share-to-chat --thread-id <会话ID> --receive-id oc_xxx# 通过邮箱分享给个人lark-cli mail +share-to-chat --message-id <邮件ID> --receive-id user@example.com --receive-id-type email# Dry Runlark-cli mail +share-to-chat --message-id <邮件ID> --receive-id oc_xxx --dry-run```### 场景 1:用户说"帮我把这封邮件分享到项目群"```bash# Step 1: 搜索群聊获取 chat_idlark-cli im +chat-search --query "项目群"# → 获取 chat_id: oc_xxx# Step 2: 分享邮件lark-cli mail +share-to-chat --message-id <邮件ID> --receive-id oc_xxx```