mailosaur_messages_get_by_id
Get complete message details by providing its ID. Access email or SMS content, headers, and metadata.
Instructions
Retrieve the full detail for a single message by ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message ID. |
Implementation Reference
- src/index.ts:163-173 (handler)The main implementation of 'mailosaur_messages_get_by_id'. Registers tool with server.tool(), defines schema (id: string), and handler calls mailosaur.messages.getById(id).
server.tool( "mailosaur_messages_get_by_id", "Retrieve the full detail for a single message by ID.", { id: z.string().describe("Message ID.") }, async ({ id }) => { const message = await mailosaur.messages.getById(id); return response(message); } );