get_raw_email
Fetch an email's raw RFC822 content by ID and folder, then save it as an .eml file for export.
Instructions
Get raw email content in RFC822 format for .eml export.
Args: email_id: Email ID folder: Mail folder (default: INBOX)
Returns: Dictionary with raw_content (RFC822 format string)
Example: get_raw_email(email_id="123")
Note: Save the raw_content to a .eml file to export the email.
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": {
"email_id": "<email_id>"
},
"name": "get_raw_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | INBOX | |
| email_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||