查飞书用户
feishu_user_lookupLooks up Feishu users by email, mobile number, or open_id, returning open_id and name so you can identify a colleague or get the target needed to message or mention them.
Instructions
用邮箱、手机号或 open_id 查飞书用户,返回 open_id 与名字。使用场景:手上只有同事邮箱/手机号,需要 open_id 才能私聊或 @ 他;或者拿到 open_id 后想确认这人是谁。用法优先级:给了 open_id 就查这一个人的详情(名字、邮箱、手机号最全);否则按 emails / mobiles 批量查(两个都给会各查一次);都不给会直接报错说明用法。重要:查到记录但 open_id 为空,说明该邮箱/手机号不在本企业通讯录(或不在应用可见范围内),这不是 bug,也不能拿它当发送目标。拿到 open_id 后可以直接作为 feishu_send_text 的 target 单聊这个人。前置条件:应用需要通讯录权限(如 contact:user.id:readonly),且用户在应用可见范围内。只读。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "feishu_user_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emails | No | 要查的邮箱列表(批量),例如 ["a@b.com"]。 | |
| mobiles | No | 要查的手机号列表(批量),带不带 +86 都试一下。 | |
| open_id | No | 已知 open_id(ou_ 开头)时直接查单个用户详情,优先级最高,给了就不走批量查询。 |