get_item_comments
Retrieve all discussion thread comments for a specific Codebeamer item using its numeric ID to view feedback and collaboration history.
Instructions
Get all comments (discussion thread) for a Codebeamer item.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Numeric item ID |
Implementation Reference
- src/client/codebeamer-client.ts:281-286 (handler)The API client method that fetches item comments.
async getItemComments(id: number): Promise<CbComment[]> { const raw = await this.http.get<unknown>(`/items/${id}/comments`, { resource: `comments for item ${id}`, }); return toArray(raw); } - src/tools/item-details.ts:57-75 (registration)Registration of the get_item_comments tool and its handler logic which calls the client and formats the result.
server.registerTool( "get_item_comments", { title: "Get Item Comments", description: "Get all comments (discussion thread) for a Codebeamer item.", inputSchema: { itemId: z .number() .int() .positive() .describe("Numeric item ID"), }, }, async ({ itemId }) => { const comments = await client.getItemComments(itemId); return { content: [{ type: "text", text: formatComments(comments) }] }; }, );