save_email_ai_style
Saves an email’s design as the company default for future AI email generation, capturing fonts, colors, spacing, and layout habits without copying content or changing existing emails.
Instructions
Save an email's appearance as the company default for future AI generation. Captures fonts, colors, spacing and block treatments, plus detected layout habits (for example dotted dividers around every button) and optional notes, without copying its content or modifying existing emails. Requires emails:write and access to the source email. Replaces only expectedStyleId; get and review the current style before replacing. All detected habits are kept unless layoutRuleIds narrows them; review style.layout.rules in the response and re-save with a subset if needed. Plain-text choices and explicit style requests take precedence during generation.
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": {
"emailId": "<emailId>",
"expectedStyleId": "<expectedStyleId>"
},
"name": "save_email_ai_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional design notes for future generations, for example 'always open with a short video'. Design guidance only, never email content. | |
| canvas | No | Optional unsaved canvas snapshot. Omit to capture the stored email. Include all four fields when provided; validated by the API using the same schema as the editor. | |
| emailId | Yes | Source email ID (including campaign, sequence or transactional email IDs); must belong to this company and be visible to you. | |
| companyId | No | Company ID; defaults to the selected company. | |
| layoutRuleIds | No | IDs of detected layout habits to keep (from style.layout.rules, for example around|button|divider:dots). Omit to keep every detected habit; pass [] to keep none. | |
| expectedStyleId | Yes | revisionId from get_email_ai_style. Use null only for an initial save with no stored style. On conflict, read and review again before retrying. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Additional context about the result. | |
| items | No | Fallback array wrapper used only when a tool returns a bare array. | |
| style | No | Saved appearance snapshot, or null when none is active. | |
| value | No | Fallback object wrapper used only when a tool returns a non-object value. | |
| message | No | Human-readable status, confirmation, or next-step message. | |
| success | No | Whether the Sequenzy operation succeeded. | |
| warnings | No | Non-fatal cautions about content, permissions, or follow-up actions. | |
| canManage | No | Whether this caller can save or clear a style. | |
| revisionId | No | Observed snapshot revision for conditional save/clear; may be nonnull for an unsupported style version. |