get_item_comments
Retrieve all comments for a specific Qiita article using its article ID to view community feedback and discussions.
Instructions
指定された記事のコメント一覧を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | 記事ID |
Implementation Reference
- src/tools/handlers.ts:165-168 (handler)The handler definition for the 'get_item_comments' tool. It uses itemIdSchema for input validation and delegates execution to the QiitaApiClient's getItemComments method.get_item_comments: { schema: itemIdSchema, execute: async ({ itemId }, client) => client.getItemComments(itemId), },
- src/tools/definitions.ts:506-519 (schema)The MCP tool definition including name, description, and input schema for 'get_item_comments'.{ name: 'get_item_comments', description: '指定された記事のコメント一覧を取得します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, }, required: ['itemId'], }, },
- src/qiitaApiClient.ts:206-209 (helper)The core helper method in QiitaApiClient that performs the actual API request to retrieve comments for a given item ID.async getItemComments(itemId: string) { const response = await this.client.get(`/items/${itemId}/comments`); return response.data; }