reply_to_message
Sends a threaded email reply to an existing message, fetching original headers so Gmail groups it correctly. Saves it as a draft for user confirmation by default, or sends immediately in direct mode.
Instructions
Send a reply in an existing thread, after the user confirms it (by default).
Fetches the original message for Subject / Message-ID / References headers and sets the reply's threadId so Gmail groups it correctly.
By default (GMAIL_SEND=confirm) the reply is saved as a draft in the original thread and sent only when the user confirms it, exactly as send_message describes; otherwise it waits in Gmail's Drafts folder. GMAIL_SEND=direct sends at once.
Args: message_id: ID of the message being replied to. body: Plain-text reply body. body_html: Optional HTML reply body. reply_all: When True, also include the original To and Cc recipients in addition to the reply target.
Recipients follow standard mail-client rules: the reply goes to the original's Reply-To if it has one, otherwise its From. Replying to a message you sent yourself goes to that message's original To (or its Cc, if nobody else was in To) instead. Your own addresses, including send-as aliases, are left off the recipients unless nobody else is on the message.
Returns: The same shapes as send_message: sent true with the sent message id, thread_id, and label_ids, or sent false with the held draft. A reply_all, or a reply to your own sent message, also has a warning when your own addresses couldn't be fully looked up (so you may be among the recipients). On failure, {"error": "..."}.
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": {
"message_id": "<message_id>",
"body": "<body>"
},
"name": "reply_to_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| body_html | No | ||
| reply_all | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||