list_users_by_department
List all members in a WeCom department by department ID, optionally including sub-departments, returning each user's name and UserID.
Instructions
列出部门成员 (仅返回姓名 + UserID)。
Args: department_id: 部门 ID,0=根部门 (全部成员) fetch_child: 是否递归子部门
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": "list_users_by_department"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fetch_child | No | ||
| department_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |