lark-contact

SkillSearch

Your AI can use Lark to send messages, manage docs and sheets, and handle calendar events, mail, and tasks. It is built on the official Lark command line tool maintained by the Lark team, made for both people and AI agents. The tool covers everyday work areas like messaging, docs, sheets, calendar, mail, tasks, and meetings, with more than 200 commands.

Available today. Use it from your connected AI after setup.

After adding it, tell your AI what you need done in Lark, such as sending a message or setting up a doc.

Then ask your AI: use the lark-contact skill

What your AI can do with it

  • Send messages in Lark
  • Manage docs
  • Work with sheets
  • Manage calendar events
  • Handle mail
  • Keep track of tasks

What this skill tells your AI

The instructions your AI receives, as published by larksuite/cli in skills/lark-contact/SKILL.md and read by ahel’s review.

选哪个命令

user 身份和 bot 身份是两条完全独立的路径。先确定当前身份,再按下表选命令:

想做什么user 身份bot 身份
按姓名 / 邮箱搜员工拿 open_id+search-user不支持
按关键词搜索当前用户可见的机器人 / 智能体+search-bot不支持
已知 open_id 取他人资料+search-user --user-ids <id>+get-user --user-id <id>
查看自己+get-user+search-user --user-ids me不支持
查同事的个人状态 / 签名user_profiles batch_query不支持

已知 open_id 只是想发消息 / 排日程,不必经过 contact —— 直接 lark-im / lark-calendar

名字没说清是人还是机器人 / 智能体

用户给的名字常常不表明类型。例如「和 reviewDuck 约个会」里的 reviewDuck 可能是同事昵称,也可能是机器人。

  • 名字含 bot / agent / AI / 助手 / 机器人 / 智能体 / assistant 等明显特征时,反过来先搜机器人更快
  • 不确定的话两边都搜一下

典型场景

找张三给他发消息:先搜,确认 open_id,再发:

lark-cli contact +search-user --query "张三" --has-chatted --as user
lark-cli im +messages-send --user-id ou_xxx --text "Hi!"

批量查同事的个人状态 / 个性签名(先用 schema 看参数)。

lark-cli schema contact.user_profiles.batch_query
lark-cli contact user_profiles batch_query \
  --params '{"user_id_type":"open_id"}' \
  --data '{"user_ids":["ou_xxx","ou_yyy"],"query_option":{"include_personal_status":true,"include_description":true}}' \
  --as user

搜索命中多条且后续操作有副作用(发消息、邀请会议等),把候选列给用户挑;不要擅自选第一条。

搜索机器人 / 智能体

+search-bot 使用 user 身份按关键词搜索当前用户可见的机器人,返回 ou_ 开头的机器人 open_id。参数细节等见 lark-contact-search-bot.md

lark-cli contact +search-bot --query '会议助手' --as user
lark-cli contact +search-bot --queries '会议助手,日报助手,审批助手' --as user

注意事项

  • 41050 / Permission denied 受当前身份的可见范围限制(三条命令都可能遇到)。细节见 lark-shared
  • 跨租户用户(is_cross_tenant=true)多数业务字段为空字符串,这是飞书可见性规则,下游做空值兜底。
  • ID 类型:+get-user 可通过 --user-id-type 使用 open_idunion_iduser_id;+search-user 使用用户 open_id;+search-bot 不支持按 ID 查询,它按关键词搜索并返回机器人 open_id。

不在本 skill 范围

Signals

GitHub stars
17k
Forks
1k
Last commit
Sep 2026
Installs
436k installs
Advanced
Catalog kind
skill
Gateway key
lark-contact
Source
github.com/larksuite/cli