search_emails
Search email body and subject lines for specific text. Optionally exclude drafts and control result order and limit.
Instructions
Full-text search of email body and subject. Does not filter by sender, recipient, or date — use advanced_search for field-specific filtering. Drafts are included by default; set excludeDrafts=true to omit draft messages from results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results (default: 20) | |
| query | Yes | Text to search for in email body and subject lines | |
| ascending | No | Sort oldest first instead of newest first (default: false) | |
| excludeDrafts | No | Omit draft messages from results (default: false, drafts included). Filtered server-side via the $draft keyword. |