Render an email
renderConvert emailmd markdown into email-safe HTML and plain text for Outlook and Gmail, returning metadata, repair warnings, and a live preview link.
Instructions
Render emailmd markdown into email-safe HTML. Returns html (the complete email document), text (the plain-text MIME part), meta (frontmatter), warnings (non-fatal repairs made while rendering; aim for none), htmlBytes, and previewUrl (a live browser preview of this exact document to share with the user).
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": {
"markdown": "<markdown>"
},
"name": "render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minify | No | Minify the HTML. Recommended for sending; helps stay under Gmail's 102KB clip limit. | |
| markdown | Yes | The emailmd markdown document, optionally starting with YAML frontmatter. | |
| partials | No | Named markdown partials spliced in wherever the document says "::: include <name>". |