lock_thread
Prevent new replies in an Ed Discussion thread by locking it. Use this tool to manage thread activity and control discussions in your course.
Instructions
Lock a thread (prevent new replies)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | Global thread ID |
Implementation Reference
- src/api.ts:169-171 (handler)The implementation of the lockThread method, which sends a POST request to lock a thread.
async lockThread(threadId: number): Promise<void> { await this.request("POST", `threads/${threadId}/lock`); } - src/index.ts:278-278 (registration)Registration of the lockThread method in the threadActions object.
lock: api.lockThread,