list_emails
Fetch recent emails from a specified mailbox folder, supporting pagination and filtering for unread messages only.
Instructions
List recent emails from a specific mailbox folder.
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": "list_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of emails to retrieve (default: 20, max recommended: 50). | |
| folder | No | Mailbox name to list emails from (e.g. 'INBOX', 'Sent', 'Drafts'). Default is 'INBOX'. | INBOX |
| offset | No | Offset for pagination (default: 0). | |
| unread_only | No | If True, only returns unread emails. Default is False. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |