delete-comment
Remove a specific comment from a thread in a Liveblocks room by specifying the roomId, threadId, and commentId.
Instructions
Delete a Liveblocks comment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commentId | Yes | ||
| roomId | Yes | ||
| threadId | Yes |
Implementation Reference
- src/server.ts:515-531 (registration)Registration of the 'delete-comment' MCP tool using server.tool(), including inline schema and handler.server.tool( "delete-comment", `Delete a Liveblocks comment`, { roomId: z.string(), threadId: z.string(), commentId: z.string(), }, async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); } );
- src/server.ts:523-530 (handler)The handler function executes the tool logic by calling the Liveblocks SDK's deleteComment method via callLiveblocksApi.async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); }
- src/server.ts:518-522 (schema)Zod schema defining the input parameters: roomId, threadId, and commentId.{ roomId: z.string(), threadId: z.string(), commentId: z.string(), },