Compose Broadcast
compose-broadcastSet TipTap JSON content of a broadcast to enable visual editing in the Resend dashboard. Optionally update subject, preview text, or name.
Instructions
Purpose: Set the TipTap JSON content of a broadcast, enabling it to be edited visually in the Resend dashboard editor. Automatically connects and disconnects from the editor. Can also update metadata (subject, preview text, name) in the same call.
This is the recommended way to set email content. Content set via compose-broadcast can be visually edited by the user in the dashboard. Use this for newsletters and any broadcast where the user may want to refine the content.
Workflow: get-tiptap-json-content (with include_schema: true) → compose-broadcast
When to use:
After create-broadcast, to set the email body
When the user wants to write, edit, or style email content
When the user wants to collaborate on the email in the dashboard editor
Important: Always call get-tiptap-json-content first to retrieve the existing TipTap JSON, then build your changes on top of it. Skipping this will overwrite all existing content.
Note: Switching between compose (TipTap) and update (raw HTML) modes is lossy — some content or formatting may be lost. If the broadcast already has HTML content, ask the user before switching to compose mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Update the broadcast name (internal label). | |
| content | No | TipTap JSON content. Call get-tiptap-json-content (with include_schema: true) first to get the existing content and the schema reference. | |
| subject | No | Update the email subject line. | |
| broadcastId | Yes | Broadcast ID or Resend dashboard URL (e.g. https://resend.com/broadcasts/<id>) | |
| previewText | No | Update the preview text (shown in inbox before opening the email). |