pin_thread
Pin a discussion thread to the top of the forum to ensure it remains visible and accessible to all users.
Instructions
Pin a thread to the top
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | Global thread ID |
Implementation Reference
- src/api.ts:177-179 (handler)The actual implementation of the pin thread request.
async pinThread(threadId: number): Promise<void> { await this.request("POST", `threads/${threadId}/pin`); } - src/index.ts:300-312 (registration)The MCP tool registration logic that dynamically creates the 'pin_thread' tool.
server.tool( `${action}_thread`, threadActionDescs[action], { thread_id: z.number().describe("Global thread ID") }, async ({ thread_id }) => { try { await threadActions[action].call(api, thread_id); return msg(`Thread ${thread_id} ${action}ed successfully.`); } catch (err) { return fail(err); } } );