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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"thread_id": "<thread_id>"
},
"name": "lock_thread"
}
}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,