get_course_thread
Retrieve a specific discussion thread from an Ed Discussion course using its course ID and thread number.
Instructions
Get a thread by its course-local number (the # shown in the Ed UI)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | Course ID | |
| thread_number | Yes | Thread number within the course |
Implementation Reference
- src/api.ts:134-142 (handler)The API implementation that performs the actual network request for getting a course thread.
async getCourseThread( courseId: number, threadNumber: number ): Promise<EdGetThreadResponse> { return this.request<EdGetThreadResponse>( "GET", `courses/${courseId}/threads/${threadNumber}` ); } - src/index.ts:154-167 (registration)The MCP tool registration and handler wrapper for get_course_thread.
server.tool( "get_course_thread", "Get a thread by its course-local number (the # shown in the Ed UI)", { course_id: z.number().describe("Course ID"), thread_number: z.number().describe("Thread number within the course"), }, async ({ course_id, thread_number }) => { try { return ok(await api.getCourseThread(course_id, thread_number)); } catch (err) { return fail(err); } }