render_template
Render an email template into subject and body text, with optional auto-fill of reply context variables for draft creation.
Instructions
Render a template into ready-to-send subject and body text.
No side effects — caller is responsible for passing the rendered
text to create_draft or update_draft (with send_now=True
when ready to send).
With message_id, the original sender's display name and email,
the original subject, and today's date are auto-populated as
recipient_name, recipient_email, original_subject, and
today. Without message_id, only today is auto-filled.
User-supplied vars always override auto-fills on conflict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name to render. | |
| vars | No | Optional dict of variable overrides / additional values. | |
| message_id | No | Optional source-message id for reply context. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||