lark-contact

SkillCommunityAudited: no issuesTranslated from Chinese

This skill provides tools for interacting with the Lark (FeiShu) contact directory. It allows agents to resolve names or email addresses to open_ids and retrieve employee details such as names, departments, and contact information using open_ids.

Install:
npx skills add larksuite/cli/lark-contact

lark-contact

Which command to choose

The user identity and bot identity are two completely independent paths. First determine the current identity, then choose the command according to the table below:

What you want to douser identitybot identity
Search for employees by name / email to get open_id+search-userNot supported
Get someone else's profile with a known open_id+search-user --user-ids <id>+get-user --user-id <id>
View yourself+get-user or +search-user --user-ids meNot supported

If you already have an open_id and just want to send a message or schedule a meeting, there is no need to go through contact. Use lark-im or lark-calendar directly.

Typical scenarios

# Find Zhang San to send him a message: search first, confirm open_id, then send
lark-cli contact +search-user --query "Zhang San" --has-chatted --as user
lark-cli im +messages-send --user-id ou_xxx --text "Hi!"

If a search returns multiple hits and subsequent operations have side effects (sending messages, inviting to meetings, etc.), list the candidates for the user to choose from. Do not choose the first one automatically.

Notes

  • 41050 / Permission denied: Restricted by the visibility scope of the current identity (both commands may encounter this). Switch to bot identity or have an administrator adjust the visibility scope. See lark-shared for details.
  • Cross-tenant users (is_cross_tenant=true): Most business fields are empty strings. This is a Lark visibility rule. Downstream services should handle empty values.
  • ID type: Default is open_id. +get-user can change this with --user-id-type union_id|user_id. +search-user only accepts open_id.

Out of scope for this skill

  • Sending messages / checking chat history: lark-im
  • Scheduling meetings / inviting to meetings: lark-calendar
  • Department trees / listing employees by department / organizational structure: Use lark-openapi-explorer to find native interfaces.
Share:
Details:
  • Installs


    216,758
  • First seen


    Jun 10, 2026
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS (low risk)
ZeroLeaksPASS
View Repository

Auto-fetched from GitHub .

Stats via skills.sh.

Skills similar to lark-contact:

 

 
 
  • Installs


 

 
 
  • Installs


 

 
 
  • Installs