Skip to main content
Glama
liveblocks

Liveblocks

Official
by liveblocks

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
NameRequiredDescriptionDefault
roomIdYes
threadIdYes
commentIdYes
dataYes

Implementation Reference

  • 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 }
        )
      );
    }
  • 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 }
          )
        );
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liveblocks/liveblocks-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server