Send newsletter test email
send_campaign_testSends a real external test email for every actual content variant of the saved draft newsletter to one address, without creating a contact or tracking data. The tool automatically calculates and waits for variants, creates the internal test-send identity, and sends every actual variant; the caller only supplies the campaign, its exact saved contentRevision, and the recipient address. If the user has not provided the recipient address, ask for it before calling this tool. Any valid email address is accepted and it does not need a special tag or an existing contact. Conditional content requires the tenant's conditional-content capability. Partial or unknown per-variant results are not success. Never schedules or starts a real campaign dispatch. Own contact fields are supported only in heading.text and text.html, including two-column children: {{custom.key}} or {{custom.key | default: "replacement text"}}. Read list_contact_fields first and use its permanent keys; offer active fields for new insertion. Existing archived references still resolve. Missing/blank values use the fallback or empty text. Escape fallback JSON and HTML correctly; do not split a token with inline markup. Tenant validation reports invalid syntax, unsupported locations and unknown keys. Custom field placeholders are not supported in subjects, preheaders, buttons, URLs, footers, signatures or DOI emails.
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": {
"campaignId": "<campaignId>",
"expectedContentRevision": "<expectedContentRevision>",
"toEmail": "<toEmail>"
},
"name": "send_campaign_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toEmail | Yes | Single recipient email address for this test send | |
| campaignId | Yes | Newsletter campaign ID | |
| personalization | No | Optional personalization: {mode:"contact",contactId:"tenant-contact-uuid"} uses that contact as the data source; {mode:"empty"} renders fallbacks without custom field values. Omit for literal preview tokens or, on test sends, values of an existing contact matching toEmail. The test email is always delivered to toEmail; the selected contact is not subscribed, tagged, or unsubscribed by selecting it. Find contact IDs with search_contacts or get_contact_by_email. | |
| expectedContentRevision | Yes | Exact contentRevision returned by get_campaign_content for the saved content to send |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| subject | Yes | ||
| toEmail | Yes | ||
| response | Yes | ||
| requestId | Yes | ||
| campaignId | Yes | ||
| contentRevision | Yes | ||
| variantWorkflow | No |