Skip to main content
Glama
liveblocks
by liveblocks

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

Implementation Reference

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

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