email_search
Search mailbox messages using filters like sender, subject, folder, date range, and flags. Returns compact results by default to save context; enable returnBody to include full email content.
Instructions
Search emails with filters. By default returns compact results without full body content to save context. Set returnBody=true to include full email bodies.
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": {
"accountId": "<accountId>"
},
"name": "email_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| body | No | ||
| from | No | ||
| limit | No | ||
| since | No | ||
| before | No | ||
| folder | No | ||
| offset | No | ||
| subject | No | ||
| accountId | Yes | ||
| returnBody | No | ||
| unreadOnly | No | ||
| starredOnly | No | ||
| hasAttachment | No |