Skip to main content
Glama
liveblocks
by liveblocks

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
NameRequiredDescriptionDefault
roomIdYes
threadIdYes

Implementation Reference

  • 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 }) ); }
  • 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 }) ); } );

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