star_thread
Bookmark important discussion threads for quick access and future reference in Ed Discussion courses.
Instructions
Star/bookmark a thread
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | Global thread ID |
Implementation Reference
- src/api.ts:193-195 (handler)Implementation of the starThread API call.
async starThread(threadId: number): Promise<void> { await this.request("POST", `threads/${threadId}/star`); } - src/index.ts:300-312 (registration)Registration logic for the star_thread tool using server.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); } } );