create_draft
Create an unsent draft in one connected mailbox. Supply a stable operationId and reuse it only to retry the exact same draft. Returns a queued operation immediately; this is not confirmation of provider completion. Poll get_mail_action with the returned operationId. Never retry an uncertain send with a new operationId.
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": {
"accountId": "<accountId>",
"to": "<to>",
"subject": "<subject>",
"operationId": "<operationId>"
},
"name": "create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| bcc | No | ||
| subject | Yes | ||
| htmlBody | No | ||
| textBody | No | ||
| accountId | Yes | ||
| operationId | Yes | High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send. | |
| senderIdentityId | No |