search_messages
Find emails by date range, sender, subject, folder, or unread status, returning newest UIDs first with pagination to continue through large result sets.
Instructions
Search by YYYY-MM-DD dates (inclusive since, exclusive before), sender or subject.
Returns newest UIDs first. Pass next_before_uid as before_uid to continue. Preserve account_id, folder, uidvalidity and uid for reading each result.
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": {
"account_id": "<account_id>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| since | No | ||
| before | No | ||
| folder | No | INBOX | |
| sender | No | ||
| subject | No | ||
| account_id | Yes | ||
| before_uid | No | ||
| unread_only | No |