delete_comment
Remove unwanted or outdated comments from Qiita articles to maintain content quality and relevance. Delete comments by providing the specific comment ID.
Instructions
指定されたコメントを削除します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commentId | Yes | コメントID |
Implementation Reference
- src/tools/handlers.ts:183-186 (handler)The handler for the 'delete_comment' tool, which validates input using commentIdSchema and executes by calling client.deleteComment(commentId).delete_comment: { schema: commentIdSchema, execute: async ({ commentId }, client) => client.deleteComment(commentId), },
- src/tools/definitions.ts:556-569 (schema)MCP tool schema definition for 'delete_comment', specifying the input schema requiring 'commentId'.{ name: 'delete_comment', description: '指定されたコメントを削除します', inputSchema: { type: 'object', properties: { commentId: { type: 'string', description: 'コメントID', }, }, required: ['commentId'], }, },
- src/qiitaApiClient.ts:223-227 (helper)The QiitaApiClient helper method that authenticates and sends DELETE request to /comments/{commentId}.async deleteComment(commentId: string) { this.assertAuthenticated(); await this.client.delete(`/comments/${commentId}`); return { success: true }; }
- src/tools/handlers.ts:27-29 (schema)Zod input schema for commentId used by the delete_comment handler.const commentIdSchema = z.object({ commentId: z.string(), });