feishu-lark-cli
CLAWHUB · Unverified
飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员时使用。
- 62
- Rank
- 84
- Safety
- 1.0k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 11, 2026
- Adoption signal
- 1K downloadsadoption · Oct 11, 2026
- Latest release
- 1.0.0release · Apr 8, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.0release
feishu-lark-cli 1.0.0 - Initial release with comprehensive 飞书 (Feishu/Lark) instant messaging CLI capabilities. - Supports sending, replying, searching messages; managing group chats and members; uploading/downloading images and files; managing emoji reactions. - Provides both user and bot identity operation; detailed token/permission guidance included. - Advanced, shortcut-style commands for common IM tasks. - Thorough documentation of core concepts, and resource relationships for effective usage.
Observed Apr 8, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s178rped1kc5gzamqhagevxn0984fage:feishu-lark-cli- Install using `clawhub skill install s178rped1kc5gzamqhagevxn0984fage:feishu-lark-cli` in an isolated environment before connecting it to live workloads.
- No published capability contract is available yet, so validate auth and request/response behavior manually.
- Review the upstream CLAWHUB listing at https://clawhub.ai/roy-oss1/feishu-lark-cli before using production credentials.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-roy-oss1-feishu-lark-cli/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
79,315 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: lark-im
version: 1.0.0
description: "飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员时使用。"
homepage: https://github.com/larksuite/cli
metadata: {"clawdbot":{"emoji":"💬","requires":{"bins":["lark-cli"]},"install":[{"id":"node","kind":"node","package":"@larksuite/cli","bins":["lark-cli"],"label":"Install lark-cli (npm)"}]},"openclaw":{"emoji":"💬","requires":{"bins":["lark-cli"]},"install":[{"id":"node","kind":"node","package":"@larksuite/cli","bins":["lark-cli"],"label":"Install lark-cli (npm)"}]}}
---
# im (v1)
**CRITICAL — 开始前 MUST 先用 Read 工具读取 [`../lark-shared/SKILL.md`](../lark-shared/SKILL.md),其中包含认证、权限处理**
## Core Concepts
- **Message**: A single message in a chat, identified by `message_id` (om_xxx). Supports types: text, post, image, file, audio, video, sticker, interactive (card), share_chat, share_user, merge_forward, etc.
- **Chat**: A group chat or P2P conversation, identified by `chat_id` (oc_xxx).
- **Thread**: A reply thread under a message, identified by `thread_id` (om_xxx or omt_xxx).
- **Reaction**: An emoji reaction on a message.
## Resource Relationships
```
Chat (oc_xxx)
├── Message (om_xxx)
│ ├── Thread (reply thread)
│ ├── Reaction (emoji)
│ └── Resource (image / file / video / audio)
└── Member (user / bot)
```
## Important Notes
### Identity and Token Mapping
- `--as user` means **user identity** and uses `user_access_token`. Calls run as the authorized end user, so permissions depend on both the app scopes and that user's own access to the target chat/message/resource.
- `--as bot` means **bot identity** and uses `tenant_access_token`. Calls run as the app bot, so behavior depends on the bot's membership, app visibility, availability range, and bot-specific scopes.
- If an IM API says it supports both `user` and `bot`, the token type changes who the operator is. The same API can succeed with one identity and fail with the other because owner/admin status, chat membership, tenant boundary, or app availability are checked against the current caller.
### Sender Name Resolution with Bot Identity
When using bot identity (`--as bot`) to fetch messages (e.g. `+chat-messages-list`, `+threads-messages-list`, `+messages-mget`), sender names may not be resolved (shown as open_id instead of display name). This happens when the bot cannot access the user's contact info.
**Root cause**: The bot's app visibility settings do not include the message sender, so the contact API returns no name.
**Solution**: Check the app's visibility settings in the Lark Developer Console — ensure the app's visible range covers the users whose names need to be resolved. Alternatively, use `--as user` to fetch messages with user identity, which typically has broader contact access.
### Card Messages (Interactive)
Card messages (`interactive` type) are not yet supported for compact conversion in event subscriptions. The raw event data will be returned instead, with a hint printed to st_meta.json
{
"ownerId": "kn795qhfgtegkgmsgw20qaxsyh84f5g2",
"slug": "feishu-lark-cli",
"version": "1.0.0",
"publishedAt": 1775654394261
}references/lark-im-chat-create.md
# im +chat-create > **Prerequisite:** Read [`../lark-shared/SKILL.md`](../../lark-shared/SKILL.md) first to understand authentication, global parameters, and safety rules. Create a group chat. Supports both user identity (`--as user`) and bot identity (`--as bot`). You can specify the group name, description, members (users/bots), owner, and chat type (private/public). This skill maps to the shortcut: `lark-cli im +chat-create` (internally calls `POST /open-apis/im/v1/chats`). - `--as bot` requires the `im:chat:create` scope. - `--as user` requires the `im:chat:create_by_user` scope. ## Commands ```bash # Create a private group (default) lark-cli im +chat-create --name "My Group" # Create a public group (name is required and must be at least 2 characters) lark-cli im +chat-create --name "Public Group" --type public # Specify the group owner lark-cli im +chat-create --name "My Group" --owner ou_xxx # Invite user members (comma-separated open_ids, up to 50) lark-cli im +chat-create --name "My Group" --users "ou_aaa,ou_bbb" # Invite bot members (comma-separated app IDs, up to 5) lark-cli im +chat-create --name "My Group" --bots "cli_aaa,cli_bbb" # Invite both users and bots lark-cli im +chat-create --name "My Group" --users "ou_aaa" --bots "cli_aaa" # Make the creating bot a group manager (bot identity only) lark-cli im +chat-create --name "My Group" --set-bot-manager --as bot # JSON output lark-cli im +chat-create --name "My Group" --format json # Create a group with bot identity lark-cli im +chat-create --name "My Group" --users "ou_aaa" --as bot # Create a group with user identity lark-cli im +chat-create --name "My Group" --users "ou_aaa,ou_bbb" --as user # Preview the request without creating anything lark-cli im +chat-create --name "My Group" --dry-run ``` ## Parameters | Parameter | Required | Limits | Description | |------|------|------|------| | `--name <name>` | Required for public groups | Max 60 characters; at least 2 characters for public groups | Group name (`"(no subject)"` for private groups if omitted) | | `--description <text>` | No | Max 100 characters | Group description | | `--users <ids>` | No | Up to 50, format `ou_xxx` | Comma-separated user open_ids | | `--bots <ids>` | No | Up to 5, format `cli_xxx` | Comma-separated bot app IDs | | `--owner <open_id>` | No | Format `ou_xxx` | Owner open_id (defaults to the bot when using `--as bot`, or the authorized user when using `--as user`) | | `--type <type>` | No | `private` (default) or `public` | Group type | | `--set-bot-manager` | No | - | Set the creating bot as a group manager (only effective with `--as bot`) | | `--format json` | No | - | Output as JSON | | `--as <identity>` | No | `bot` or `user` | Identity type | | `--dry-run` | No | - | Preview the request without executing it | ## AI Usage Guidance ### When using `--as bot` Bot may fail to invite users who are mutually invisible to it during group creation (error 232043). To avoid this, use the **two-
references/lark-im-chat-identity.md
# Group Chat Identity Rules > Warning: The most common source of failure in group operations is choosing the wrong identity. Confirm the identity before performing the action. Group-chat operations support both `--as user` (UAT user identity) and `--as bot` (TAT bot identity). Choosing the correct identity is critical for success. ## Basic Principles - **If the user explicitly specifies an identity:** use exactly what the user requested (`--as user` or `--as bot`) without guessing. - **If the user does not specify an identity:** infer the correct identity from context instead of relying on the default. ## Identity Selection by Operation | Operation | Recommended Identity | Why | |------|---------|-----------------------------------| | Create group (`+chat-create`) | Depends on the scenario | Infer from context | | Add members (member-management flow) | `--as user` | Bot visibility is limited and often fails when the target user is mutually invisible to the bot (232024) | | Update group (`+chat-update`) | Owner identity | Permission changes require owner/admin privileges; owner transfer requires owner identity | ## Inferring the Owner When an owner-level action is needed and the owner is unknown, infer in this order: 1. A bot created the group and `--owner` was **not** specified -> the owner is the bot (`--as bot`) 2. A bot created the group and `--owner ou_xxx` **was** specified -> the owner is that user (`--as user`) 3. A user created the group and `--owner` was **not** specified -> the owner is the current user (`--as user`) 4. Still unclear -> ask the user to confirm who owns the group before making owner-level changes ### When the Owner Is Neither the Current User Nor the Bot If the query shows that the owner is a third-party user (`owner_id` is neither the currently authorized user nor the bot), the current identity does not have owner privileges. In that case: - **Permission/setting changes:** if the bot is an admin of the group, `--as bot` can still perform admin-level operations such as renaming the group or changing permissions. - **Owner-only actions such as owner transfer:** require the actual owner to complete UAT authorization via `lark-cli auth login`, then perform the action as that owner. - Explain the limitation clearly to the user instead of retrying blindly. ## Common Pitfalls ### Inviting Members During Group Creation If a bot creates a group and `--users` includes users who are mutually invisible to the bot, the entire request fails with 232043. Use two steps instead: 1. Create the group with the bot first, excluding invisible users: `lark-cli im +chat-create --name "Group Name"` 2. Add users later with a user-identity member-management flow ### Insufficient Privileges - **232016 / 232002 / 232017:** the current identity is not the owner or an admin -> switch to the owner identity - **232011:** the current user is not in the group -> use a group-member identity, or join the group first - **232024:** the bot
references/lark-im-chat-messages-list.md
# im +chat-messages-list > **Prerequisite:** Read [`../lark-shared/SKILL.md`](../../lark-shared/SKILL.md) first to understand authentication, global parameters, and safety rules. Fetch the message list for a conversation. Supports both group chats and direct messages. This skill maps to the shortcut: `lark-cli im +chat-messages-list` (internally calls `GET /open-apis/im/v1/messages`, and automatically resolves the p2p chat_id when needed). ## Commands ```bash # Get group chat messages (json output by default) lark-cli im +chat-messages-list --chat-id oc_xxx # Get direct messages with a user (pass open_id and resolve p2p chat_id automatically) lark-cli im +chat-messages-list --user-id ou_xxx # Specify a time range (ISO 8601) lark-cli im +chat-messages-list --chat-id oc_xxx --start "2026-03-10T00:00:00+08:00" --end "2026-03-11T00:00:00+08:00" # Specify a time range (date only) lark-cli im +chat-messages-list --chat-id oc_xxx --start 2026-03-10 --end 2026-03-11 # Control sort order and page size (max 50) lark-cli im +chat-messages-list --chat-id oc_xxx --sort asc --page-size 20 # Pagination lark-cli im +chat-messages-list --chat-id oc_xxx --page-token "xxx" # JSON output lark-cli im +chat-messages-list --chat-id oc_xxx --format json ``` ## Parameters | Parameter | Required | Description | |------|------|------| | `--chat-id <id>` | One of two | Specify the conversation by its chat_id directly (e.g., group chat `oc_xxx`) | | `--user-id <id>` | One of two | Specify a DM conversation by the other user's open_id (`ou_xxx`); p2p chat_id is resolved automatically | | `--start <time>` | No | Start time (ISO 8601 or date only) | | `--end <time>` | No | End time (ISO 8601 or date only) | | `--sort <order>` | No | Sort order: `asc` / `desc` (default `desc`) | | `--page-size <n>` | No | Page size (default 50, max 50) | | `--page-token <token>` | No | Pagination token | > Rule: `--chat-id` and `--user-id` are mutually exclusive. You must provide exactly one of them. ## Resource Rendering Messages are rendered into human-readable text for inspection. Image messages are shown as placeholders such as `[Image: img_xxx]`; files and videos are rendered with resource keys in the content. Resource binaries are **not** downloaded automatically by this command. Use [lark-im-messages-resources-download](lark-im-messages-resources-download.md) when you need to download an image or file from a specific message. | Resource Type | Marker in Content | Behavior | |---------|-------------|------| | Image | `[Image: img_xxx]` | Download manually with `im +messages-resources-download --type image` | | File | `<file key="file_xxx" .../>` | Download manually with `im +messages-resources-download --type file` | | Audio | `<audio key="file_xxx" .../>` | Download manually with `im +messages-resources-download --type file` | | Video | `<video key="file_xxx" .../>` | Download manually with `im +messages-resources-download --type file` | ## Thread Expansion (`thread_id`
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-roy-oss1-feishu-lark-cli. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about feishu-lark-cli. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-roy-oss1-feishu-lark-cli, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/roy-oss1/skills/feishu-lark-cli",
"sourceUrl": "https://clawhub.ai/roy-oss1/skills/feishu-lark-cli",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T17:19:01.484Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-roy-oss1-feishu-lark-cli/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-roy-oss1-feishu-lark-cli/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T17:19:01.484Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1K downloads",
"href": "https://clawhub.ai/roy-oss1/feishu-lark-cli",
"sourceUrl": "https://clawhub.ai/roy-oss1/feishu-lark-cli",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T17:19:01.484Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/roy-oss1/feishu-lark-cli",
"sourceUrl": "https://clawhub.ai/roy-oss1/feishu-lark-cli",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-08T13:19:54.261Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-roy-oss1-feishu-lark-cli/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-roy-oss1-feishu-lark-cli/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "feishu-lark-cli 1.0.0 - Initial release with comprehensive 飞书 (Feishu/Lark) instant messaging CLI capabilities. - Supports sending, replying, searching messages; managing group chats and members; uploading/downloading images and files; managing emoji reactions. - Provides both user and bot identity operation; detailed token/permission guidance included. - Advanced, shortcut-style commands for common IM tasks. - Thorough documentation of core concepts, and resource relationships for effective usage.",
"href": "https://clawhub.ai/roy-oss1/feishu-lark-cli",
"sourceUrl": "https://clawhub.ai/roy-oss1/feishu-lark-cli",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-08T13:19:54.261Z",
"isPublic": true
}
]
}Record generated Nov 23, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-roy-oss1-feishu-lark-cli/run-check
