search_messages_tool
Find specific emails in MailMate by searching text, tags, account, or mailbox. Returns matching messages with subject, sender, date, and links for quick access.
Instructions
Search MailMate messages by query string and/or tag.
query and tag are both optional — omit query to list all messages with a given tag, or omit tag to search by text only. Use list_tags to see available tags.
Returns a list of matching messages with subject, from, to, date, mailbox, tags, and message_url for each.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter to messages with this tag (exact match, case-insensitive) | |
| query | No | Search query (matched against subject, from, to); leave empty to match all | |
| account | No | Optional account filter (substring match on email address) | |
| mailbox | No | Optional mailbox filter (substring match, e.g. 'INBOX', 'Archive') | |
| max_results | No | Maximum number of results to return | |
| include_body | No | Also search inside message body text (slower) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |