render_template
Render a named template into ready-to-send subject and body text for Apple Mail emails, with optional reply context from a source message and variable overrides.
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 | |||