search_threads
Search email conversations grouped by thread. Filter by query, sender, recipient, or recency to find discussions without duplicate messages.
Instructions
List conversations (not individual messages) matching the filters.
Returns one entry per thread, with the latest message's metadata plus a
message_count field. Gmail uses native threadId; IMAP uses the Message-Id
/ References chain to group. Use this when the user asks "who has been
discussing X?" and you want to avoid seeing 15 near-duplicates of one reply
chain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| folder | No | INBOX | |
| query | No | ||
| senders | No | ||
| recipients | No | ||
| since_days | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |