unendorse_thread
Remove endorsement from a thread in Ed Discussion to manage thread status and visibility.
Instructions
Remove endorsement from a thread
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | Global thread ID |
Implementation Reference
- src/api.ts:189-191 (handler)The API method that sends the request to the backend to unendorse a thread.
async unendorseThread(threadId: number): Promise<void> { await this.request("POST", `threads/${threadId}/unendorse`); } - src/index.ts:300-312 (registration)Dynamic registration of thread actions, including unendorse_thread, which uses threadActions[action] to call the corresponding API method.
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); } } );