Read an AgentMail message
get_agentmail_messageRead one message in full: its text body (HTML-only messages are converted to plain text) and its attachments — name, type, size and the attachmentId that read_agentmail_attachment takes. Get the message 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>",
"messageId": "<messageId>"
},
"name": "get_agentmail_message"
}
}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. | |
| maxChars | No | Truncate the body beyond this many characters (default 20000) | |
| messageId | Yes |