Skip to content

threads_leave

Category: threads

Remove the current bot user from a thread.

  • Bot finished its task in the thread; reduce noise / event fanout.
  • Removing a different user → use threads_remove_member.
FieldTypeRequiredDescription
thread_idstringyesThread to leave

\{left, thread_id\}. Idempotent.

FieldTypeRequiredDescription
leftbooleanyes
thread_idstringyesDiscord channel ID (snowflake)
PropertyValue
Read-onlyno
Destructiveno
Idempotentyes
Open-worldyes
Confirmation requiredno

packages/mcp-core/src/tools/threads/leave.ts