Read an AgentMail thread
get_agentmail_threadRead a whole conversation, oldest first within the page, with decoded bodies. Long threads come back newest page first; pass olderPageToken back as pageToken for the earlier messages. Get the thread id from search_agentmail_messages.
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": {
"mailbox": "<mailbox>",
"threadId": "<threadId>"
},
"name": "get_agentmail_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | Address of the connected AgentMail inbox to act on. Call list_authorized_mailboxes to see available options. | |
| threadId | Yes | ||
| pageToken | No | ||
| maxCharsPerMessage | No | Per-message body budget (default 5000) |