Compile layout to inbox-proof email
design_compileCompiles a Truvek layout into email HTML, a plain-text part and (for dialect 'app') a TypeScript render() module, then lints the result. Handles Outlook VML buttons, ghost tables, hybrid mobile columns, dark mode, preheader padding, accessibility and ESP-specific merge/unsubscribe tags. Returns decisions explaining every rendering choice. Use this instead of writing email HTML by hand. Dialects: app (Resend/SES/Postmark/Nodemailer), handlebars (SendGrid/Mailgun), sfmc, braze, klaviyo, shopify.
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": {
"layout": "<layout>"
},
"name": "design_compile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | Yes | A Truvek layout. Call design_get_schema for the shape. | |
| dialect | No | app | |
| verbosity | No | compact omits per-finding reasoning to save tokens. | full |
| include_html | No | Set false in fix loops to save context; HTML size and lint still returned. |