add_work_item_comment
Add a Markdown or HTML comment to a specific Azure DevOps work item, automatically falling back to HTML on older servers.
Instructions
Add a comment to a specific work item. Supports Markdown or HTML formatting on Azure DevOps Services and gracefully falls back on older Azure DevOps Server instances.
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>",
"text": "<text>"
},
"name": "add_work_item_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The comment text to post (must not be empty or whitespace-only) | |
| format | No | Comment text format: "markdown" or "html". Transmitted as a query parameter when supported by the server (Azure DevOps Services / API version >= 7.1-preview.4) and omitted automatically on older servers that only support HTML comments. | |
| projectId | No | The ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT) | |
| workItemId | Yes | The ID of the work item to add a comment to | |
| organizationId | No | The ID or name of the organization (defaults to configured organization) |