lark-im

Send, search, and manage Feishu messages and group chats via lark-cli.

1.3k|142|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-im-minimax-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-im
Source: https://github.com/MiniMax-AI/minimax-code/tree/main/packages/local-runtime/assets/skills/lark-tools/cli-skills/lark-im
Command: npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-im-minimax-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lark-cli, and includes references (resource) components.

What problem does it solve? It lets you operate Feishu (Lark) instant messaging from the terminal without manually calling the Open Platform REST APIs, covering message sending, chat management, history search, and file downloads. ## Core Features & Use Cases - Message Operations: Send and reply to messages as text, Markdown, post, or media (image/file/video/audio), with thread replies and idempotency keys. - Chat Management: Create, search, update group chats, and manage members with correct user/bot identity selection. - Search & Retrieval: Search messages across chats with sender, time, and attachment filters, plus auto-pagination for work summaries; download message resources with automatic 8MB chunked downloads for large files. - Use Case: Ask the agent to find last week's discussion in a project group, then reply in-thread with a status update and attach a report file. ## Quick Start Ask the agent to send the message "Build passed" to the Feishu group named "project-release" using lark-im.

Frequently Asked Questions about lark-im

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send a message to a Feishu group chat from the command line?

Use lark-cli im +messages-send with --chat-id for groups or --user-id for direct messages, plus --text, --markdown, or media flags for content. Confirm the recipient, content, and identity (user or bot) before sending.

How to search Feishu chat history by keyword?

Use lark-cli im +messages-search with --query and optional filters like --chat-id, --sender, and time range. It requires user identity and supports auto-pagination with --page-all for complete results.

Should I use --as user or --as bot for Feishu IM commands?

Use --as user when the action depends on the end user's access, such as adding members or resolving sender names. Use --as bot when the app bot owns the chat or the API is bot-only, like messages.forward.

Why does sending with --markdown change my formatting in Feishu?

The --markdown flag converts content into a Feishu post payload, normalizing headings and spacing, so output is not byte-identical. Use --text with $'...' quoting when exact line breaks and formatting must be preserved.

How do I download large files from Feishu messages?

Use lark-cli im +messages-resources-download with the message_id and file_key from the message content. It automatically uses HTTP Range requests with 8MB chunks and retries for reliable large-file downloads.