threads_leave
Remove the current bot user from a Discord thread when its task is finished to reduce noise and event fanout.
Instructions
Purpose: Remove the current bot user from a thread.
When to use: - Bot finished its task in the thread; reduce noise / event fanout.
When NOT to use: - Removing a different user → use threads_remove_member.
Returns: {left, thread_id}. Idempotent.
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": "threads_leave"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | Thread to leave |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||