Search mail
mail_searchSearches messages, newest first. Subjects are as the sender wrote them.
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": "mail_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | To header contains this text. | |
| from | No | From header contains this text. | |
| role | No | Well-known role: inbox, sent, drafts, trash, junk, archive, notes. | |
| text | No | Body or subject contains this text. | |
| limit | No | Page size. Omitted means 25. More than 100 is rejected. | |
| since | No | Messages on or after this date. | |
| before | No | Messages before this date. | |
| cursor | No | Cursor from the previous page. | |
| unread | No | When set, only unseen messages. | |
| flagged | No | When set, only flagged messages. | |
| mailbox | No | Mailbox path. Omit to use `role` or the inbox. | |
| subject | No | Subject contains this text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | ||
| warnings | Yes | ||
| next_cursor | Yes |