plurk_get_thread_context
Retrieve parent plurk and normalized replies for a specific thread using provided credentials to access conversation context.
Instructions
Return the parent plurk and normalized replies for a specific thread using the supplied credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credentials | Yes | ||
| plurkId | Yes |
Implementation Reference
- src/services/plurkApplication.ts:138-156 (handler)The implementation of the getThreadContext service method.
public async getThreadContext( adapterSource: AdapterSource, credentials: PlurkCredentialsInput, plurkId: number, ): Promise<ThreadContext> { if (!Number.isInteger(plurkId) || plurkId <= 0) { throw new ServiceError("validation", "plurkId must be a positive integer", { metadata: { plurkId }, }); } return this.runReadAction( "get-thread-context", adapterSource, credentials, async (context) => context.client.getThreadContext(plurkId, context.profile.nickName ?? ""), ); } - src/transports/mcp/toolCatalog.ts:56-65 (registration)Registration of the plurk_get_thread_context tool.
{ name: "plurk_get_thread_context", description: "Return the parent plurk and normalized replies for a specific thread using the supplied credentials.", inputSchema: z.object({ credentials: credentialsSchema, plurkId: z.number().int().positive(), }), execute: async ({ credentials, plurkId }) => application.getThreadContext("mcp", credentials, plurkId),