search_emails_metadata
Search email subject and body, then return only metadata (e.g., sender, date, subject) without message previews. Use when you need content matching but must avoid exposing body text.
Instructions
Same as search_emails (free-text search across subject and body) but returns ONLY metadata on each match — id, threadId, subject, from, to, replyTo, receivedAt, hasAttachment, keywords. The query still searches body text on the server side; only the result envelopes come back, never preview or body excerpts. Use when a content match is required (e.g. "find all messages mentioning X") but the matches must not surface body fragments to the caller. When the server reports a total match count, results are wrapped in a {"total", "items"} JSON envelope; otherwise a bare JSON array is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results (default: 20) | |
| query | Yes | Search query string | |
| ascending | No | Sort oldest first instead of newest first (default: false) |