search_emails
Search a Proton Mail mailbox by sender, recipient, subject, text, date range, folder, or unread status; returns newest matching email headers first.
Instructions
Search emails in a folder, newest first (headers only).
from_/to/subject/text are case-insensitive substring matches (text searches headers and body). since/before are ISO dates (YYYY-MM-DD); before is exclusive. The default folder 'All Mail' covers the whole mailbox.
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_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| text | No | ||
| from_ | No | ||
| limit | No | ||
| since | No | ||
| before | No | ||
| folder | No | All Mail | |
| subject | No | ||
| unread_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |