email_search
Search emails across Gmail, Outlook, iCloud, and IMAP accounts using filters for sender, subject, date, folder, and attachments, returning compact results unless full bodies are requested.
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 | Include full email body in results (default: false). Set to true only when you need the full content. | |
| unreadOnly | No | ||
| starredOnly | No | ||
| hasAttachment | No |