lark-im

Send messages and manage group chats through the Feishu instant messaging API.

Updated Sep 13, 2026
One-click install
npx skills add https://github.com/U1traVeno/skills --skill lark-im-u1traveno
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-im
Source: https://github.com/U1traVeno/skills/tree/main/profiles/lark/lark-im
Command: npx skills add https://github.com/U1traVeno/skills --skill lark-im-u1traveno

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? It lets you operate Feishu (Lark) instant messaging from the command line: sending and replying to messages, searching chat history, managing group members, and handling interactive cards without manually calling raw OpenAPI endpoints. ## Core Features & Use Cases - Messaging: Send, reply, forward, recall, and search messages across group chats and direct messages, with support for text, markdown, post, images, files, audio, video, and interactive cards. - Chat Management: Create group or topic chats, list and search chats, manage members, managers, moderation, nicknames, and per-user chat settings. - Bookmarks & Feed: Manage message flags, feed shortcuts (pinned chats), and feed groups (tags) for organizing the user's feed sidebar. - Interactive Cards: Send interactive cards built via a guided workflow and listen to card.action.trigger callbacks to update cards in place. - Use Case: Ask the assistant to find a group by name, pull the last 50 messages with reactions, download attached files, and reply with a formatted markdown summary. ## Quick Start Ask the assistant to send a message to a Feishu group or list recent messages from a chat, and it will run the appropriate lark-cli im shortcut after confirming the recipient, content, and identity with you.

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 the lark-cli im +messages-send shortcut with --chat-id and a content flag such as --text, --markdown, or --image. Confirm the recipient, content, and identity first, and use --as bot or --as user depending on which identity should send the message.

How do I search Feishu chat history by keyword?▼

Use lark-cli im +messages-search with user identity, passing --query plus optional sender, chat, or time filters. It supports auto-pagination via --page-all and enriches results with sender names and chat information.

What is the difference between user identity and bot identity in Feishu IM APIs?▼

User identity (--as user) uses a user_access_token and acts as the authorized end user, while bot identity (--as bot) uses a tenant_access_token and acts as the app bot. The same API can succeed with one identity and fail with the other due to membership, ownership, or app visibility checks.

Can I download files and images from Feishu messages?▼

Yes. Use +messages-resources-download for individual files, which supports chunked download for large files, or pass --download-resources to message listing commands to fetch all eligible resources into ./lark-im-resources/. Stickers are not downloadable.

Why do sender names show as open_id when a bot fetches messages?▼

The bot cannot resolve names when the app's visibility range does not include the message sender. Fix it by widening the app's visibility settings in the Feishu Developer Console, or fetch messages with --as user, which usually has broader contact access.

How do I handle interactive card button callbacks in Feishu?▼

Listen with lark-cli event consume card.action.trigger as bot after enabling callback configuration in the developer console. Each event includes a token valid for 30 minutes that you use with the delayed card update API to replace the card content.