delete-thread
Remove outdated or irrelevant threads in Liveblocks by specifying the room and thread IDs. Streamline collaboration and maintain organized workflows.
Instructions
Delete a Liveblocks thread
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| threadId | Yes |
Implementation Reference
- src/server.ts:378-393 (registration)Registration of the 'delete-thread' tool, including schema and handler function.server.tool( "delete-thread", "Delete a Liveblocks thread", { roomId: z.string(), threadId: z.string(), }, async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteThread( { roomId, threadId }, { signal: extra.signal } ) ); } );
- src/server.ts:385-392 (handler)The handler function that executes the delete-thread tool logic by calling the Liveblocks deleteThread API.async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteThread( { roomId, threadId }, { signal: extra.signal } ) ); }
- src/server.ts:381-384 (schema)Input schema defining parameters roomId and threadId for the delete-thread tool.{ roomId: z.string(), threadId: z.string(), },