Update campaign draft
update_campaign_draftChanges a draft this chat app created, until someone saves it in EmailFig. Only the fields given change, and they mean what they mean in create_campaign_draft. It never sends.
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": {
"id": "<id>"
},
"name": "update_campaign_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The draft's id from create_campaign_draft. | |
| body | No | 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 | No | What the campaign is called in EmailFig. | |
| subject | No | ||
| audience | No | 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. Null clears it. |