mailosaur_messages_reply
Reply to an email message by specifying its ID and providing the response body, including text, HTML, attachments, and CC recipients.
Instructions
Reply to an email message.
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": {
"id": "<id>",
"body": "<body>"
},
"name": "mailosaur_messages_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message ID. | |
| body | Yes |
Implementation Reference
- src/index.ts:218-221 (handler)The handler function for mailosaur_messages_reply. It calls mailosaur.messages.reply(id, body) and returns the result JSON-stringified.
async ({ id, body }) => { const result = await mailosaur.messages.reply(id, body); return response(result); } - src/index.ts:51-56 (schema)MessageBodySchema used as the 'body' parameter schema. Defines cc, text, html, and attachments fields.
const MessageBodySchema = z.object({ cc: z.string().optional(), text: z.string().optional(), html: z.string().optional(), attachments: z.array(AttachmentSchema).optional() }); - src/index.ts:43-49 (schema)AttachmentSchema used by MessageBodySchema for the attachments array.
const AttachmentSchema = z.object({ id: z.string(), contentType: z.string().optional(), fileName: z.string().optional(), content: z.string().optional(), contentId: z.string().optional() }); - src/index.ts:211-222 (registration)Registration of the 'mailosaur_messages_reply' tool using server.tool() with name, description, input schema, and handler.
server.tool( "mailosaur_messages_reply", "Reply to an email message.", { id: z.string().describe("Message ID."), body: MessageBodySchema }, async ({ id, body }) => { const result = await mailosaur.messages.reply(id, body); return response(result); } );