get_emails_by_label
Retrieve emails from a specific Gmail label or folder, with optional date filters for paging and a mailbox field for subsequent message lookups.
Instructions
Get emails from a specific label or folder (e.g., Github, Naukri jobs, Notes, [Gmail]/Sent Mail, [Gmail]/All Mail). Supports after/before date filters for paging. Results include a mailbox field - pass it as mailbox to get_email_content and other UID-based tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Filter emails after this date (YYYY/MM/DD or YYYY-MM-DD) | |
| label | Yes | Label name (e.g., 'Github', 'Naukri jobs', 'Purchases') | |
| limit | No | Number of emails to fetch | |
| before | No | Filter emails before this date (YYYY/MM/DD or YYYY-MM-DD) - use this to page further back than the newest results |