Compose template
compose_templateCreate an email draft from a natural-language brief and persist it as a draft. Use this when you have a brief description of the email's intent.
Instructions
Compose a new email from a natural-language brief, persist it as a draft, and return id/key/subject/body. Charges compose-template credits. Hero image generation is OFF by default (set includeHeroImage:true to opt in — placeholder only). Requires templates:write. Prefer this over create_template when the operator gave a brief.
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": {
"prompt": "<prompt>"
},
"name": "compose_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| mode | No | ||
| name | No | ||
| model | No | ||
| prompt | Yes | The brief — what the email should say / do. | |
| themeId | No | ||
| category | No | ||
| starterShellId | No | ||
| includeHeroImage | No |