get_emails
Retrieve emails from any mailbox folder with options for pagination, body inclusion, unread filter, or compact IDs-only mode.
Instructions
Get emails from a mailbox folder.
Args: folder: Folder name (Inbox, Sent, Drafts, Deleted, Junk, or custom name). limit: Maximum number of emails to return (default 10, max 50). offset: Number of emails to skip for pagination. include_body: If True, fetch full body for each email (slower). unread_only: If True, only return unread emails. ids_only: If True, return only item IDs and dates (compact, for bulk ops). Max limit raised to 500 in this mode.
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": "get_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Inbox | |
| limit | No | ||
| offset | No | ||
| include_body | No | ||
| unread_only | No | ||
| ids_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |