search_messages
Search mailbox folders for the newest matching messages with optional sender, recipient, subject, body, date, and unread filters; returns metadata for locating emails before reading bodies.
Instructions
Search a folder and return the newest matches (uid, from, to, subject, date, read state). Use read_message with a uid for the body. All filters are optional and combine with AND.
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 |
|---|---|---|---|
| to | No | Recipient contains | |
| from | No | Sender contains | |
| text | No | Body contains | |
| limit | No | ||
| since | No | On or after this date, YYYY-MM-DD | |
| before | No | Before this date, YYYY-MM-DD | |
| folder | No | Mailbox folder path, e.g. INBOX or Sent | INBOX |
| subject | No | Subject contains | |
| unread_only | No |