mail_search_snippets
Retrieve highlighted subject lines and preview snippets for specified emails, with filtering by sender, recipient, subject, attachment, or full-text search for relevant highlights.
Instructions
Get highlighted subject/preview snippets for a list of emails matching a filter.
Returns subject (with tags around matches) and a preview snippet per email. Use the same filter params as mail_search_emails to get relevant highlights.
Args: email_ids: List of email IDs to fetch snippets for. text: Full-text search query (used for highlighting). from_: Filter by sender address. to: Filter by recipient address. subject: Filter by subject text. has_attachment: Filter by attachment presence.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email_ids": "<email_ids>"
},
"name": "mail_search_snippets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_ids | Yes | ||
| text | No | ||
| from_ | No | ||
| to | No | ||
| subject | No | ||
| has_attachment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |