create_work_item_attachment
Upload a local file to Azure DevOps and attach it to a specified work item, with optional comment or filename.
Instructions
Upload a file and attach it to a work item. The file is read from the local filesystem, uploaded to Azure DevOps, and linked to the specified work item.
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>",
"filePath": "<filePath>"
},
"name": "create_work_item_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Optional comment for the attachment | |
| fileName | No | The name to use for the attachment. If not provided, the name will be extracted from the file path. | |
| filePath | Yes | The absolute path to the file to upload as an attachment | |
| workItemId | Yes | The ID of the work item to attach the file to |