fetch_inbox
Pull new mail from the tenant's IMAP mailbox now, instead of waiting for somebody to open the app and click. Optional: email_account_id (defaults to the tenant's only mailbox), limit (newest N, default 50, max 500 — use 500 for a first pass over a mailbox that has been collecting). Mails already stored have their subject, sender, body and attachment flag refreshed; status, classification and any job or lead links are left alone. Returns fetched and refreshed counts. Gmail: folder (a label from list_mail_folders, e.g. SPAM or TRASH) fetches only that label — the default pull skips SPAM and TRASH. Mehrere Postfächer: ohne Angabe gilt das Standard-Postfach des Agenten (set_agent_mailboxes), sonst zuerst list_mailboxes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fetch_inbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Mailbox address instead of email_account_id | ||
| limit | No | Maximum number of entries to return | |
| folder | No | Gmail label, e.g. SPAM | |
| email_account_id | No | ID of the mailbox (email account) |