get-thread
Retrieve a specific conversation thread from a Liveblocks room by providing both room and thread identifiers.
Instructions
Get a Liveblocks thread
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| threadId | Yes |
Implementation Reference
- src/server.ts:289-293 (handler)The handler function for the 'get-thread' tool. It calls the Liveblocks client's getThread method via callLiveblocksApi, passing roomId and threadId, and handles the signal for cancellation.
async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThread({ roomId, threadId }, { signal: extra.signal }) ); } - src/server.ts:285-288 (schema)Zod input schema defining parameters: roomId (string) and threadId (string).
{ roomId: z.string(), threadId: z.string(), }, - src/server.ts:282-294 (registration)Registration of the 'get-thread' MCP tool using server.tool(), including name, description, input schema, and inline handler function.
server.tool( "get-thread", "Get a Liveblocks thread", { roomId: z.string(), threadId: z.string(), }, async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThread({ roomId, threadId }, { signal: extra.signal }) ); } );