Read thread
get_threadRead messages in an email thread page by page, with up to 50,000 body characters per page. Use it to retrieve thread history and continue paginated results when an IMAP search returns incomplete.
Instructions
Read a page of messages in an email thread, with at most 50,000 body characters per page. In an IMAP mailbox, finding the replies means searching each folder. When that search runs out of time, the result has the messages found so far and incomplete is true.
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": {
"threadId": "<threadId>"
},
"name": "get_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | oldest (default) starts with the first message; newest starts with the latest message and pages back in time | |
| pageSize | No | ||
| threadId | Yes | ||
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| pageToken | No | ||
| bodyFormat | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |