Create campaign draft
create_campaign_draftSaves a new campaign as a draft in EmailFig and returns a link to it. It never sends: a person reviews the draft and sends it from EmailFig. Write the body as blocks, after calling get_email_format, so the person can edit it in EmailFig's drag-and-drop editor.
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": {
"name": "<name>",
"subject": "<subject>",
"audience": "<audience>",
"body": "<body>"
},
"name": "create_campaign_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Exactly one of: blocks (the editor format from get_email_format), html, or template_id. Use blocks unless the person gave you HTML or chose a template. | |
| name | Yes | What the campaign is called in EmailFig. | |
| subject | Yes | ||
| audience | Yes | Who it goes to, one of: { everyone: true }, { list_ids: [...] }, or { tag_ids: [...], segment_ids: [...] }. | |
| preview_text | No | The line inboxes show after the subject. | |
| subscription_list_id | No | A list list_lists marks as a subscription_list: people can subscribe to it and leave, and anyone who left is skipped. Needed before sending when the account has such lists. |