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
| Name | Required | Description | Default |
|---|---|---|---|
| commentId | Yes | ||
| roomId | Yes | ||
| threadId | Yes |
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 } ) ); } );
- src/server.ts:482-489 (handler)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 } ) ); }
- src/server.ts:477-481 (schema)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(), },