Reply to a message
messages_replyReply to a message, inside its own thread and quoting it below the reply: to whoever wrote it - to whom it was sent, where this mailbox wrote it - or with replyAll to everyone on it. It sends mail the person asked to go; mail they asked to prepare is a draft. A request id already spent sends nothing again: the answer says whether that send went or may have gone. An address the person did not give is found in their past mail - messages_list_all_mailboxes with from: or to: and the name, at the headers view - and is theirs to confirm before anything is written to it. The person's own last letter to someone - the newest found with to: and their address whose sender is an address mailboxes_list names - shows the manner they write to them in. Where the address it goes from has a signature - settings_send_as_get reads the default address's - the signature goes below your words and above any quote, so a sign-off, name, title, phone number or link in the words repeats it, and sign false leaves it off a terse note; where it has none, the words close as the person's own would.
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": {
"mailbox": "<mailbox>",
"messageId": "<messageId>",
"requestId": "<requestId>"
},
"name": "messages_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Who to copy, instead of those replyAll copies. | |
| to | No | Who the reply goes to, instead of whoever wrote the message - whom it was sent to, where this mailbox wrote it - and, with replyAll, those it was sent to. | |
| bcc | No | Who to blind-copy. The other recipients are not told. | |
| body | No | The reply text; html alone is enough, its text read from it. | |
| flag | No | On an Outlook mailbox, a follow-up flag on these days for the person's own reminder, which the sent copy carries. No other mailbox keeps one. | |
| from | No | The address it goes from. Left out, a reply goes from the address its message was sent to where Gmail lists that one, else from the mailbox's default. A Gmail connected by Google sign-in goes from any address Gmail lists as verified for it, under that address's own signature; an Outlook mailbox, and any other, from its own address alone, refusing another. The answer names the address it goes from. | |
| html | No | The message as HTML, for formatting; body stays its plain-text version, read from it where left out. An Outlook mailbox keeps only the HTML and writes the plain version from it. | |
| sign | No | false leaves the signature out; it goes in by default. | |
| mailbox | Yes | The mailbox's name or its email address. | |
| replyAll | No | true addresses everyone the message was sent to and copied too - never its blind copies, never this mailbox. | |
| chatFiles | No | Files the person attached in this chat, as the chat itself hands them over - never an address you write: a file anywhere else is refused, and goes in attachments instead. | |
| messageId | Yes | The provider's own identifier. | |
| requestId | Yes | Your own id for this send, new for every message. One whose send went or may have gone sends nothing again. | |
| afterwards | No | Once it has gone, its thread is archived or marked read, as threads_archive or threads_modify does it - under that tool's own permission for this mailbox, counting no second action. Where that tool is turned off or the act fails, the mail still went, and the answer's afterwards says why its thread was left. | |
| importance | No | How important the message is marked, normal where left out: an Outlook mailbox marks its own, and any other writes the standard headers the recipient's mail app reads. | |
| attachments | No | Files to carry: one held by any connected mailbox, content you write out, or a file put at an upload address. A file you hold and can send yourself by HTTP PUT, as from a terminal, is named by filename and mimeType alone: the call then writes nothing and answers with an address to put it at, and the same call made again names it by the upload that answer gave it. Any other file is written out, kept small. | |
| crossCompanies | No | true only once the person said yes, in this conversation, to this one letter going from a mailbox of one of their companies to another company's people or carrying files from another company's mail - the refusal names both. Never set it unasked, and ask again for every letter that crosses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| from | No | The address it went from. | |
| uploads | No | ||
| accepted | No | ||
| threadId | No | ||
| messageId | No | ||
| signature | No | Which signature went under your words, or why none did: gmail, Gmail's own for the address it went from; lumman, the one Lumman keeps for an Outlook mailbox or one whose provider is imap; none_set, that address has none - settings_send_as_patch sets one, a Gmail one only where that address is the one the mailbox signs in with; left_out, the call asked for none; already_in_words, your words already carried it; company_adds, the person has said the mailbox's company adds its own on its server. | |
| afterwards | No | What became of afterwards: done where the thread was archived or marked read; else the mail still went, reason says why its thread was left, and threadId names that thread for threads_archive or threads_modify. | |
| sentCopyKept | No | ||
| markedAnswered | No | Present where the mailbox's server would not mark the message this replied to as answered: a search for what waits on the person still finds it there. | |
| refusedRecipients | No |