list_inboxes
Retrieve all active email inboxes for your LobsterMail account to manage email tools within AI agents.
Instructions
List all active inboxes for this account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:364-381 (handler)The MCP tool registration and implementation handler for 'list_inboxes'. It retrieves the LobsterMail client and calls the listInboxes method.
server.registerTool('list_inboxes', { title: 'List Inboxes', description: 'List all active inboxes for this account.', inputSchema: {}, }, async () => { const lm = await getClient(); const inboxes = await lm.listInboxes(); if (inboxes.length === 0) { return { content: [{ type: 'text' as const, text: 'No inboxes found. Use create_inbox to create one.' }], }; } for (const inbox of inboxes) { cacheInbox(inbox); }