get_comment
Retrieve detailed information about specific comments on the Qiita developer community platform using comment IDs to access comment content and metadata.
Instructions
指定されたコメントの詳細情報を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commentId | Yes | コメントID |
Implementation Reference
- src/tools/handlers.ts:187-190 (handler)Handler definition for the 'get_comment' MCP tool. It uses a shared schema and executes by delegating to the QiitaApiClient's getComment method.get_comment: { schema: commentIdSchema, execute: async ({ commentId }, client) => client.getComment(commentId), },
- src/tools/definitions.ts:570-583 (schema)Tool schema definition for 'get_comment' used in the list tools response, including input schema for validation.{ name: 'get_comment', description: '指定されたコメントの詳細情報を取得します', inputSchema: { type: 'object', properties: { commentId: { type: 'string', description: 'コメントID', }, }, required: ['commentId'], }, },
- src/qiitaApiClient.ts:229-232 (helper)Core implementation of fetching a comment by ID using the Axios client in QiitaApiClient.async getComment(commentId: string) { const response = await this.client.get(`/comments/${commentId}`); return response.data; }
- src/tools/handlers.ts:27-29 (helper)Shared Zod schema for commentId parameter used in get_comment handler.const commentIdSchema = z.object({ commentId: z.string(), });