remove-comment-reaction
Remove emoji reactions from comments in Liveblocks collaborative rooms to manage user feedback and maintain clean discussion threads.
Instructions
Remove a reaction from a Liveblocks comment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| threadId | Yes | ||
| commentId | Yes | ||
| data | Yes |
Implementation Reference
- src/server.ts:569-576 (handler)The handler function that executes the tool logic by calling the Liveblocks SDK's removeCommentReaction method wrapped in callLiveblocksApi.async ({ roomId, threadId, commentId, data }, extra) => { return await callLiveblocksApi( getLiveblocks().removeCommentReaction( { roomId, threadId, commentId, data }, { signal: extra.signal } ) ); }
- src/server.ts:559-568 (schema)Input schema using Zod for validating parameters: roomId, threadId, commentId, and data (emoji, userId, removedAt).{ roomId: z.string(), threadId: z.string(), commentId: z.string(), data: z.object({ emoji: z.string(), userId: z.string(), removedAt: z.date().optional(), }), },
- src/server.ts:556-577 (registration)Registration of the 'remove-comment-reaction' tool with McpServer, including name, description, input schema, and handler function.server.tool( "remove-comment-reaction", `Remove a reaction from a Liveblocks comment`, { roomId: z.string(), threadId: z.string(), commentId: z.string(), data: z.object({ emoji: z.string(), userId: z.string(), removedAt: z.date().optional(), }), }, async ({ roomId, threadId, commentId, data }, extra) => { return await callLiveblocksApi( getLiveblocks().removeCommentReaction( { roomId, threadId, commentId, data }, { signal: extra.signal } ) ); } );