Show Work Item Relations
az_workitem_relationsFetch work item details including relations to verify if attachments already exist, preventing duplicate attachment uploads.
Instructions
以 REST API 取得 work item 的完整資訊含 relations($expand=relations),可用於檢查附件(AttachedFile 的 attributes.name)是否已存在。預設 organization 為 https://dev.azure.com/SKMHHIS。
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": {
"workItemId": "<workItemId>"
},
"name": "az_workitem_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workItemId | Yes | Work item ID |