Get work item comments
get_work_item_commentsRetrieve paginated discussion comments for a work item, returning comment IDs needed for subsequent updates.
Instructions
List discussion comments of a work item (paged). Returns comment ids needed for update_work_item_comment.
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>"
},
"name": "get_work_item_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Work item id | |
| top | No | Page size (default: server default, max 200). | |
| order | No | asc | |
| format | No | How to return rich-text fields (Description, Repro Steps, comments): converted to plain text/markdown, or raw HTML. | text |
| project | No | Team project name or id. Overrides TFS_DEFAULT_PROJECT. Work items and repos may live in different projects. | |
| includeDeleted | No | ||
| continuationToken | No | Token from a previous page. |