Add work item comment
add_work_item_commentAdd a discussion comment to any work item, converting plain text to HTML or accepting HTML directly. Returns the new comment ID for reference.
Instructions
Add a discussion comment to a work item. Plain text is converted to HTML; HTML is accepted as-is. Returns the new comment id.
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": {
"id": "<id>",
"text": "<text>"
},
"name": "add_work_item_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Work item id | |
| text | Yes | Comment text (plain text or HTML). | |
| project | No | Team project name or id. Overrides TFS_DEFAULT_PROJECT. Work items and repos may live in different projects. |