#2772·cli

feat(im): 将 --output / --output-dir 添加到 +chat-messages-list 中 (与基础的 +record-list / minutes +detail 相同)

作者: qiubai12创建于 2026年9月24日更新于 2026年9月28日
标签enhancementdomain/basedomain/imdomain/minutesdomain/core

Is your feature request related to a problem? AI agents (using the official agent skills, npx skills add larksuite/cli) increasingly drive lark-cli for read-only bulk extraction, e.g. building personal knowledge bases / RAG corpora from chat history. With --page-all, im +chat-messages-list can return thousands of messages in one run — but it only prints to stdout. To persist results, the full payload must flow through the agent's context window, which forces truncation/sampling of large chats and spreads extraction across many runs. Additionally, many agent sandboxes deliberately block shell redirection (>, tee) for security, so "just redirect stdout" is not always available.