Skip to main content
Glama
liveblocks
by liveblocks

delete-comment

Remove unwanted or outdated comments from Liveblocks collaborative threads using room, thread, and comment identifiers.

Instructions

Delete a Liveblocks comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
threadIdYes
commentIdYes

Implementation Reference

  • The handler function for the 'delete-comment' tool, which calls the Liveblocks API to delete a comment in a specific room and thread.
    async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); }
  • Input schema for the 'delete-comment' tool, defining required string parameters: roomId, threadId, and commentId.
    { roomId: z.string(), threadId: z.string(), commentId: z.string(), },
  • src/server.ts:515-531 (registration)
    Registration of the 'delete-comment' tool on the MCP server using server.tool(), including name, description, schema, and inline 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 } ) ); } );

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