Preview the email agent
preview_email_agentRun the hosted email agent on a sample message without sending, drafting or saving anything: returns the decision, reason, reply text, matched playbook rules, the judge, checker and Jev results, would_send (whether auto mode would send it to an authenticated sender) and caps (every downgrade). config proposes changes to instructions, playbook_markdown, screening, ai_disclosure, sensitive_topics or sign_off, validated as update_email_agent validates them but never saved; omitted fields use the saved settings. Needs agent:email.draft too. At most 30 previews per identity per day (rate_limited); the first 20 per account each billing month are free, later ones cost the reply price (usage_cents) under the email agent spend cap (email_agent_spend_cap_reached). A failed preview is never charged.
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": {
"identity_id": "<identity_id>",
"from": "<from>",
"text": "<text>"
},
"name": "preview_email_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Sample sender address. | |
| text | Yes | Sample message body, plain text. | |
| config | No | Proposed settings to preview instead of the saved ones; never saved. | |
| subject | No | Sample subject. | |
| identity_id | Yes | Identity id from list_identities. |