createInbox
Generate secure, isolated inboxes for AI agents to send, receive, and manage messages efficiently within the AgentMail system. Customize with display name, domain, and username.
Instructions
Create a new inbox
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| display_name | No | ||
| domain | No | ||
| username | No |
Implementation Reference
- node/src/functions.ts:24-26 (handler)Node.js handler function for the createInbox tool. It creates a new inbox by calling the AgentMailClient's inboxes.create method with the provided arguments.export async function createInbox(client: AgentMailClient, args: Args) { return client.inboxes.create(args) }
- Python handler function for the create_inbox tool. It creates a new inbox by calling the AgentMail client's inboxes.create method with unpacked keyword arguments.def create_inbox(client: AgentMail, kwargs: Kwargs): return client.inboxes.create(**kwargs)
- node/src/schemas.ts:17-22 (schema)Zod schema defining input parameters for createInbox tool: optional username, domain, and display_name.export const CreateInboxParams = z.object({ username: z.string().optional().describe('Username'), domain: z.string().optional().describe('Domain'), display_name: z.string().optional().describe('Display name'), })
- Pydantic schema defining input parameters for create_inbox tool: optional username, domain, and display_name.class CreateInboxParams(BaseModel): username: Optional[str] = Field(description="Username") domain: Optional[str] = Field(description="Domain") display_name: Optional[str] = Field(description="Display name")
- node/src/tools.ts:48-53 (registration)Registration of the create_inbox tool in the Node.js tools array, linking schema and handler function.{ name: 'create_inbox', description: 'Create inbox', params_schema: CreateInboxParams, func: createInbox, },