preview_email
Render a saved email template or draft for a specific ERP record in a chosen language and timezone, returning the subject, HTML, errors, and source to verify customer-facing output before sending.
Instructions
Render an email for one record: a saved one (email_template_id) or
a draft (subject + body_html, optional translations). language
(de_DE, fr...) shows it as a customer with that language gets it;
timezone (IANA) is where its datetimes print.
Returns {subject, html, errors, source, record}; no credits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "preview_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | No | ||
| language | No | ||
| timezone | No | ||
| body_html | No | ||
| record_id | No | ||
| bind_model | No | sale.order | |
| translations | No | ||
| email_template_id | No |