get-thread-participants
Retrieve participant information from a specific Liveblocks thread to identify users engaged in collaborative discussions.
Instructions
Get a Liveblocks thread's participants
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| threadId | Yes |
Implementation Reference
- src/server.ts:303-310 (handler)Handler function that executes the get-thread-participants tool by invoking the Liveblocks client's getThreadParticipants method via callLiveblocksApi.async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreadParticipants( { roomId, threadId }, { signal: extra.signal } ) ); }
- src/server.ts:299-302 (schema)Zod input schema defining parameters: roomId (string) and threadId (string).{ roomId: z.string(), threadId: z.string(), },
- src/server.ts:296-311 (registration)Registration of the 'get-thread-participants' tool on the McpServer instance, including description, input schema, and handler function.server.tool( "get-thread-participants", "Get a Liveblocks thread's participants", { roomId: z.string(), threadId: z.string(), }, async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreadParticipants( { roomId, threadId }, { signal: extra.signal } ) ); } );