mailosaur_servers_generate_email_address
Generate a random email address for a Mailosaur server to use in email testing workflows.
Instructions
Generate a random email address for a Mailosaur server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Server ID. |
Implementation Reference
- src/index.ts:325-335 (handler)The handler for the 'mailosaur_servers_generate_email_address' tool. It takes a server 'id', calls mailosaur.servers.generateEmailAddress(id) to generate a random email address, and returns it as JSON.
server.tool( "mailosaur_servers_generate_email_address", "Generate a random email address for a Mailosaur server.", { id: z.string().describe("Server ID.") }, async ({ id }) => { const emailAddress = mailosaur.servers.generateEmailAddress(id); return response({ emailAddress }); } ); - src/index.ts:328-329 (schema)Input schema for the tool: requires 'id' (string) as the server ID.
{ id: z.string().describe("Server ID.") - src/index.ts:325-325 (registration)The tool is registered via server.tool() call with the name 'mailosaur_servers_generate_email_address'.
server.tool(