Skip to main content
Glama
liveblocks
by liveblocks

add-comment-reaction

Add emoji reactions to comments in Liveblocks collaborative rooms to express feedback and engage with team discussions.

Instructions

Add a reaction to a Liveblocks comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
threadIdYes
commentIdYes
dataYes

Implementation Reference

  • The handler function that implements the core logic of the 'add-comment-reaction' tool by calling the Liveblocks API to add a reaction to a specified comment.
    async ({ roomId, threadId, commentId, data }, extra) => { return await callLiveblocksApi( getLiveblocks().addCommentReaction( { roomId, threadId, commentId, data }, { signal: extra.signal } ) ); }
  • Zod schema defining the input parameters for the 'add-comment-reaction' tool: roomId, threadId, commentId, and data containing emoji, userId, and optional createdAt.
    { roomId: z.string(), threadId: z.string(), commentId: z.string(), data: z.object({ emoji: z.string(), userId: z.string(), createdAt: z.date().optional(), }), },
  • src/server.ts:533-554 (registration)
    The MCP server.tool registration for the 'add-comment-reaction' tool, including name, description, schema, and handler.
    server.tool( "add-comment-reaction", `Add a reaction to a Liveblocks comment`, { roomId: z.string(), threadId: z.string(), commentId: z.string(), data: z.object({ emoji: z.string(), userId: z.string(), createdAt: z.date().optional(), }), }, async ({ roomId, threadId, commentId, data }, extra) => { return await callLiveblocksApi( getLiveblocks().addCommentReaction( { 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