mark-thread-as-resolved
Mark a specific thread as resolved in Liveblocks by specifying the room ID, thread ID, and user ID to manage thread status effectively.
Instructions
Mark a Liveblocks thread as resolved
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| roomId | Yes | ||
| threadId | Yes |
Implementation Reference
- src/server.ts:338-356 (registration)Registration of the 'mark-thread-as-resolved' tool, including description, input schema, and handler function that calls the Liveblocks API.server.tool( "mark-thread-as-resolved", "Mark a Liveblocks thread as resolved", { roomId: z.string(), threadId: z.string(), data: z.object({ userId: z.string(), }), }, async ({ roomId, threadId, data }, extra) => { return await callLiveblocksApi( getLiveblocks().markThreadAsResolved( { roomId, threadId, data }, { signal: extra.signal } ) ); } );
- src/server.ts:348-355 (handler)Handler function executing the tool logic by calling Liveblocks' markThreadAsResolved via callLiveblocksApi utility.async ({ roomId, threadId, data }, extra) => { return await callLiveblocksApi( getLiveblocks().markThreadAsResolved( { roomId, threadId, data }, { signal: extra.signal } ) ); }
- src/server.ts:341-347 (schema)Zod input schema validating roomId, threadId, and data.userId parameters.{ roomId: z.string(), threadId: z.string(), data: z.object({ userId: z.string(), }), },