mail_search_messages
Find specific emails by filtering on read status, flagged status, subject, or sender. Paginated results: default 50, max 500.
Instructions
Search/list messages in a mailbox with optional filters (read status, flagged status, subject/sender substring). Paginated: default limit 50, max 500.
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": {
"accountName": "<accountName>",
"mailboxPath": "<mailboxPath>"
},
"name": "mail_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| readStatus | No | ||
| accountName | Yes | ||
| mailboxPath | Yes | ||
| flaggedStatus | No | ||
| senderContains | No | ||
| subjectContains | No |