search_messages
Find emails in a mailbox by sender, subject, text, date range, or unread status. Returns UIDs and envelopes so agents can locate messages and read bodies with a separate call.
Instructions
Search messages in a mailbox. Returns uid + envelope; use read_message for the body. Chinese folder names must match list_folders output exactly.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Sender contains | |
| text | No | Full-text search | |
| limit | No | 1-100, default 20 (newest first) | |
| since | No | ISO date, inclusive | |
| before | No | ISO date, exclusive | |
| unseen | No | Only unread | |
| account | No | Account id or email | |
| mailbox | No | Folder path, default INBOX | |
| subject | No | Subject contains |