get_comment
Retrieve detailed information about a specific comment on the Qiita developer community platform using its unique comment ID.
Instructions
指定されたコメントの詳細情報を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commentId | Yes | コメントID |
Implementation Reference
- src/tools/handlers.ts:187-190 (handler)The handler for the 'get_comment' MCP tool. It validates the input using commentIdSchema and executes by calling client.getComment(commentId).get_comment: { schema: commentIdSchema, execute: async ({ commentId }, client) => client.getComment(commentId), },
- src/tools/handlers.ts:27-29 (schema)Zod schema used for input validation of the get_comment tool (and other comment tools). Defines commentId as a required string.const commentIdSchema = z.object({ commentId: z.string(), });
- src/tools/definitions.ts:570-583 (registration)MCP tool registration entry in the tools array. Provides the name, description, and JSON inputSchema for the get_comment tool.{ name: 'get_comment', description: '指定されたコメントの詳細情報を取得します', inputSchema: { type: 'object', properties: { commentId: { type: 'string', description: 'コメントID', }, }, required: ['commentId'], }, },
- src/qiitaApiClient.ts:229-232 (helper)Helper method in QiitaApiClient that performs the actual HTTP GET request to retrieve the comment details from the Qiita API.async getComment(commentId: string) { const response = await this.client.get(`/comments/${commentId}`); return response.data; }