Skip to main content
Glama
liveblocks
by liveblocks

get-comment

Retrieve comments from Liveblocks by providing roomId, threadId, and commentId. Access specific feedback or discussions within collaborative spaces efficiently.

Instructions

Get a Liveblocks comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentIdYes
roomIdYes
threadIdYes

Implementation Reference

  • src/server.ts:474-490 (registration)
    Registration of the 'get-comment' tool, including its description, input schema, and inline handler function that calls the Liveblocks API to fetch a specific comment.
    server.tool( "get-comment", `Get a Liveblocks comment`, { roomId: z.string(), threadId: z.string(), commentId: z.string(), }, async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().getComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); } );
  • The inline handler function that implements the core logic of the 'get-comment' tool by invoking the Liveblocks client's getComment method via callLiveblocksApi.
    async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().getComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); }
  • Input schema for the 'get-comment' tool using Zod, requiring string parameters for roomId, threadId, and commentId.
    { roomId: z.string(), threadId: z.string(), commentId: z.string(), },

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