mail_reply
Reply to an existing email in Apple Mail, pasting text above the quoted original and optionally replying to all recipients, saving as a draft, or previewing before sending.
Instructions
Reply to an existing email. The reply text is pasted above the quoted original in a visible Mail window (System Events focus on the message body, then Command-Up and clipboard paste — not Cmd-A, which would replace the quote; AppleScript content is not set because Mail 16 leaves it empty). reply_all=true fans out to every original recipient and requires confirm=true. A real send is verified in Sent/Outbox before success. A send hang is a timeout, not TCC, unless Mail reports -1743/-10004; hang recover uses In-Reply-To. Clients must Sent-check before retrying a timed-out send. Dashes used as punctuation (em dash, en dash, a spaced hyphen) are rewritten as commas or words before anything is written; hyphens inside names and identifiers stay.
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": {
"body": "<body>"
},
"name": "mail_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Reply text, prepended above the quoted original via System Events paste (required). AppleScript content is not set. | |
| confirm | No | Required for deletes and multi-recipient sends; without it the call only previews | |
| dry_run | No | Preview only: report what would happen and change nothing (default false) | |
| file_path | No | Alternative to message_id: the .emlx file_path from mail_search, resolved to its Message-ID | |
| reply_all | No | Reply to all original recipients (default false) | |
| message_id | No | RFC822 Message-ID of the email (from mail_search / mail_read results) | |
| save_as_draft | No | Save the reply to Drafts instead of sending (default false) |