convert_email
Convert EML or MBOX email files to JSON, HTML, TXT, or Markdown while extracting headers, subject, and body for processing or archiving.
Instructions
Convert email files. Input: eml, mbox. Output: json, html, txt, md. Extracts headers, subject, body.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "convert_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bodyOnly | No | Only include subject, from, to, date, body (optional) | |
| inputPath | Yes | Absolute path to input email file (.eml or .mbox) | |
| outputPath | Yes | Absolute path for output file (include extension) | |
| inputFormat | No | Input format (auto-detected if not provided) | |
| outputFormat | No | Output format (auto-detected if not provided) |