search_emails
Search a mailbox folder newest first using optional filters—sender, recipient, subject, body, date, size, read/flagged status, account, or Gmail syntax—to find matching messages.
Instructions
Search a folder, newest first. All filters are optional and combined with AND.
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 | ||
| body | No | ||
| from | No | ||
| seen | No | false = unread only | |
| limit | No | ||
| since | No | Date, e.g. 2026-10-01 | |
| before | No | Date, e.g. 2026-10-31 | |
| folder | No | Folder path from list_folders | INBOX |
| larger | No | Size in bytes | |
| account | No | Mailbox: WORK | PERSONAL. Default WORK | |
| flagged | No | ||
| subject | No | ||
| gmail_raw | No | Gmail only: Gmail search syntax, e.g. "has:attachment older_than:7d" |