Add work item attachment
add_work_item_attachmentAttach a base64-encoded file (up to 10 MiB) to an Azure Boards work item. Provide work item ID, file name, and content to add the attachment.
Instructions
Upload a base64 file up to 10 MiB and attach it to a work item. Requires write tools and confirm=true.
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>",
"fileName": "<fileName>",
"contentBase64": "<contentBase64>",
"confirm": "<confirm>"
},
"name": "add_work_item_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| confirm | Yes | Must be true to perform the mutation. | |
| project | No | Project name or ID. Omit to use AZURE_DEVOPS_DEFAULT_PROJECT. | |
| fileName | Yes | ||
| workItemId | Yes | Azure Boards work item ID. | |
| contentBase64 | Yes | ||
| expectedRevision | No |