Search emails
email_searchSearch emails by from/to/subject/body/text, date range, and flags. Searches ALL folders unless a folder is given. Note: on the ox-api transport, body/text match only the subject and addresses of recent messages (not full message…
Instructions
Search emails by from/to/subject/body/text, date range, and flags. Searches ALL folders unless a folder is given. Note: on the ox-api transport, body/text match only the subject and addresses of recent messages (not full message bodies); use the imap transport for true full-text search.
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": "email_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| body | No | ||
| from | No | ||
| seen | No | ||
| text | No | Match anywhere in headers or body. | |
| limit | No | ||
| since | No | ISO date: only messages on/after this date. | |
| before | No | ISO date: only messages before this date. | |
| folder | No | Folder to search; omit to search every folder. | |
| server | No | Server/account id to target. Defaults to the configured default server. | |
| flagged | No | ||
| subject | No |