unendorse_comment
Remove endorsement from a comment in Ed Discussion to retract support or correct previous approval.
Instructions
Remove endorsement from a comment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | Comment ID |
Implementation Reference
- src/api.ts:246-248 (handler)The actual implementation of the tool, which makes a POST request to the API to unendorse a comment.
async unendorseComment(commentId: number): Promise<void> { await this.request("POST", `comments/${commentId}/unendorse`); } - src/index.ts:376-388 (registration)Registration of the "unendorse_comment" tool, mapping it to the API method.
server.tool( "unendorse_comment", "Remove endorsement from a comment", { comment_id: z.number().describe("Comment ID") }, async ({ comment_id }) => { try { await api.unendorseComment(comment_id); return msg(`Comment ${comment_id} unendorsed.`); } catch (err) { return fail(err); } } );