preview_mail
Read-only; changes nothing and sends nothing. Render a form's auto-reply against sample answers (key scope settings:read) and return the subject, the body and the sample used. Without subject / body it renders what is saved now; with them it previews a draft before update_settings saves it. Use it to show the user what the sender would receive.
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": {
"site": "<site>",
"form": "<form>"
},
"name": "preview_mail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | A draft body to preview (default: the saved one) | |
| form | Yes | The form key | |
| site | Yes | Site ID (the id from list_sites, e.g. "my-shop") | |
| subject | No | A draft subject to preview (default: the saved one) |