Get Email Thread
get_threadRetrieve all messages belonging to the same email thread by matching normalized subject lines across INBOX and Sent folders, enabling quick summarization of long conversations.
Instructions
Return all messages that look like they belong to the same thread as the given email. Uses the normalized Subject (Re:/Fwd: stripped) to collect related messages from INBOX + Sent. Useful for summarising long conversations in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | IMAP UID of any message in the thread | |
| folder | No | Folder the seed message lives in. Providing this avoids UID collisions across folders. | |
| max_messages | No | Max messages to return (default 50, cap 200) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | Yes | Normalized subject line for the thread | |
| messages | Yes | Messages in the thread, oldest-first |