Gmail Reply
gmail_replyReply to a Gmail message within its existing thread, choosing sender-only or reply-all while preserving the subject and threading headers.
Instructions
Reply to one Gmail message inside its existing thread, to the sender only or with reply_all to everyone on it: the subject is reused and In-Reply-To and References point at that message, leaving out the account's own and send-as addresses (on your own sent mail the original recipients are kept). gmail_send_email starts a new conversation instead, and gmail_save_draft saves mail for review without sending. Returns status 'sent' with mode ('reply' or 'reply_all'), the new message_id, thread_id, to, cc and subject, or status 'cancelled' if the user declines. The user is always asked to approve the reply first, shown its recipients, subject, attachments and body.
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>"
},
"name": "gmail_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html_body | No | HTML body, sent as an alternative to text_body; without text_body the plain-text part is the placeholder 'This message contains HTML content.' | |
| reply_all | No | False (default) answers only the sender: the message's Reply-To address, else its From. True also copies every other original To and Cc address in Cc. | |
| text_body | No | Plain-text body. Pass it together with html_body to send both versions; with neither, the body is empty. | |
| message_id | Yes | ID of the Gmail message to answer, from gmail_search_emails, gmail_get_thread or gmail_read_emails. | |
| attachments | No | Files to attach, each with exactly one source: uploaded_file (an upload handle from uploads_file_manager) or file_path (local stdio servers only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| mode | No | ||
| status | No | Machine-readable operation status. | |
| message | No | ||
| subject | No | ||
| label_ids | No | ||
| thread_id | No | ||
| message_id | No | ||
| replied_to_message_id | No |