查询子部门
list_sub_departmentsRetrieves the direct subdepartments of a specified department, with offset/limit pagination, so you can browse one level of an organization's hierarchy.
Instructions
查询指定部门的直属子部门(offset/limit 分页,limit 最大 100)。需要整棵树请用 get_department_tree。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "list_sub_departments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 部门 ID;使用 $root 表示组织根部门 | |
| limit | No | ||
| offset | No | ||
| select | No | 透传 $select,如 hasUsers,hasSubDepartments,userCount,managers,email,isHidden,canManage | |
| managed | No | 仅返回当前身份可管理的部门 |