draft_email_reply
Create a reply DRAFT for an Email Assistant conversation. Never sends. The draft is saved in the farm's Email Assistant (it pre-fills the reply box in QuailOS for that thread) and returns a draftId usable with send_email. Recipient defaults to the other party of the conversation and must be a participant of that thread. Owner/admin read/write AI keys only.
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": {
"farmId": "<farmId>",
"emailId": "<emailId>",
"body": "<body>"
},
"name": "draft_email_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional recipient address; must already be a participant of this conversation (default: the original sender) | |
| body | Yes | Plain-text reply body (1-20000 chars) | |
| farmId | Yes | The unique farm ID | |
| emailId | Yes | The message being replied to (from list_emails/get_email) | |
| subject | No | Optional subject (default "Re: <original subject>") | |
| showInApp | No | Pre-fill the QuailOS reply box for this thread with the draft (default true; replaces any auto Magic Draft suggestion shown there) | |
| idempotencyKey | No | Optional unique client key; repeating it returns the same draft |