list_emails
List emails FuseAI has synced from the user's connected mailboxes (inbox or another label), read from FuseAI's stored copy without contacting the mail provider. Mailboxes that are disconnected or need re-authentication are left out, and when the user has chosen to hide non-campaign emails, only emails with the user's campaign contacts are returned. Returns recent emails with ids, subjects, and senders. Each email's receiverEmailAddress is the connected mailbox it belongs to: for a reply or any other received email, the address that received it; for a sent, scheduled or draft email, the mailbox it is sent from, with the recipients in toRecipients, ccRecipients and bccRecipients. labelType picks the view (inbox, sent, drafts, important, unread, scheduled, snoozed, archived, deleted, spam, favorite, prospects). Optional filters: campaignId, isCampaignEmail (true: campaign emails only, false: non-campaign only; ignored when campaignId is set), contactName, mailBoxAccount, fromDate/toDate (ISO), searchVal (free text over names, subject and body); set filter="true" when scoping to a mailBoxAccount. tags and repliesOnly are accepted but have no effect on this list. Paginated via page (default 1) and limit (default 20, max 100).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"labelType": "<labelType>"
},
"name": "list_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| tags | No | ||
| limit | No | ||
| filter | No | ||
| toDate | No | ||
| fromDate | No | ||
| labelType | Yes | ||
| searchVal | No | ||
| campaignId | No | ||
| contactName | No | ||
| repliesOnly | No | ||
| mailBoxAccount | No | ||
| isCampaignEmail | No |