get_work_item_attachment
Downloads an Azure DevOps work item attachment by ID and saves it to a local file path. Use the attachment GUID from work item relations to retrieve the file.
Instructions
Download an attachment from Azure DevOps and save it to the local filesystem. The attachment ID can be obtained from the work item relations.
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": {
"attachmentId": "<attachmentId>",
"outputPath": "<outputPath>"
},
"name": "get_work_item_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | Yes | The absolute path where the attachment will be saved | |
| attachmentId | Yes | The ID (GUID) of the attachment to download. Can be obtained from the work item relations. |