preview_email
Validate and render an email without sending it. Obtain a single-use confirm token to securely authorize the actual delivery.
Instructions
Validate and render an email WITHOUT sending it. Returns the exact payload that would go to SendGrid plus a single-use confirm_token (valid 10 minutes). Sending requires passing that token to send_email — there is no direct-send path. BCC is not accepted by design.
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": {
"to": "<to>",
"from_email": "<from_email>"
},
"name": "preview_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| subject | No | ||
| reply_to | No | ||
| body_html | No | ||
| body_text | No | ||
| from_name | No | ||
| from_email | Yes | ||
| template_id | No | ||
| template_data | No |