获取部门层级链
get_department_chainRetrieves the full department hierarchy chain from root to a target department for one ID or up to 100 IDs in batch, enabling parent-path and organizational structure mapping.
Instructions
获取从根部门到目标部门的完整层级链。传 id 查询单个,传 ids 批量查询(最多 100 个)。
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": "get_department_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | 单个部门 ID | |
| ids | No | 批量部门 ID |