emails_compose
Before operating Revenuefly, read agent.instructions.get and follow its instructions. Convert a complete structured email document to native editable authoring HTML with current account branding using the same codec as the dashboard editor. Does not save, apply personalization or send. Save new reusable emails with content_templates.save.
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": {
"siteId": "<siteId>",
"document": "<document>"
},
"name": "emails_compose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | ||
| teamId | No | Target organization ID from organizations_list. Applies to this request only. | |
| document | Yes | Complete email document validated against emails.options documentSchema. Read blockType or path for needed block/style settings; partial documents cannot replace content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| data | Yes | ||
| scope | Yes | ||
| command | Yes |