Export original message to a host folder
mail_original_exportExport a stored message's original .msg or .eml file from its PST or IMAP source to a host folder for opening in Outlook to verify tables or layout.
Instructions
Retrieve one stored message's original file from its source (PST via Outlook saved as .msg, or mail server via IMAP saved as .eml) into a host folder so the user can open it in Outlook to verify tables or original layout. message_id is the stored integer message id (or its decimal string). dest_dir must be an absolute host path of at most 200 characters. Never overwrites. When neither source still holds the message, returns status not_found with the subject, sender, and sent date instead of failing.
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": {
"message_id": "<message_id>",
"dest_dir": "<dest_dir>"
},
"name": "mail_original_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_dir | Yes | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||