remove-comment-reaction
Remove a specific reaction from a comment in Liveblocks by specifying room, thread, comment IDs, and the user and emoji details for precise action.
Instructions
Remove a reaction from a Liveblocks comment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commentId | Yes | ||
| data | Yes | ||
| roomId | Yes | ||
| threadId | Yes |
Implementation Reference
- src/server.ts:569-576 (handler)Handler function that executes the tool logic by invoking the Liveblocks API to remove a comment reaction.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 defining parameters for the remove-comment-reaction tool: roomId, threadId, commentId, and data with emoji, userId, and optional 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 using McpServer.tool, including name, description, schema, and handler.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 } ) ); } );