Get work item attachment
devops_work_item_attachment_getDownload a work item attachment by ID, returning base64-encoded content or saving it to a local directory when a save path is provided.
Instructions
Download a work item attachment by specified ID. Returns base64-encoded content, or saves to a local directory if savePath is provided.
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": {
"attachment_id": "<attachment_id>",
"file_name": "<file_name>"
},
"name": "devops_work_item_attachment_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | The file name of the attachment. Used to determine the MIME type. If save_path is provided, the file is saved under this name. | |
| save_path | No | Optional directory path to save the file to. If omitted, returns the content as a base64-encoded resource. NOTE: relative paths are resolved against the MCP server's working directory; paths starting with '..' are not allowed. | |
| attachment_id | Yes | The GUID of the attachment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |