reply_email
Sends a reply to an existing email after confirmation, preserving thread headers and quoting the original body; supports reply-all, HTML, and attachments.
Instructions
Reply to a message and send the reply immediately; confirm with the user first.
Addresses the reply to the original sender (plus the original To/Cc, minus your own address, when reply_all is true), prefixes the subject with "Re:" if needed, sets In-Reply-To and References so clients thread it correctly, and quotes the original plain-text body below yours.
Args: account: Account name from list_accounts. folder: Folder containing the message being answered. uid: UID of the message being answered. body: Your reply text; the quoted original is appended after it. reply_all: Also reply to the original To and Cc recipients. html: Optional HTML alternative for the reply. attachments: Local file paths to attach.
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": {
"account": "<account>",
"folder": "<folder>",
"uid": "<uid>",
"body": "<body>"
},
"name": "reply_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| body | Yes | ||
| html | No | ||
| folder | Yes | ||
| account | Yes | ||
| reply_all | No | ||
| attachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | Yes | ||
| to | Yes | ||
| bcc | Yes | ||
| from | Yes | ||
| subject | Yes | ||
| warning | No | ||
| message_id | Yes | ||
| size_bytes | Yes | ||
| saved_to_folder | Yes | ||
| refused_recipients | Yes |