search_emails
Search one domain's mailbox for text (at least 2 characters) in the subject, the sender, the recipient or the body. Returns addressing, the subject and a short preview per hit — never the body. Call get_email with a hit's messageId to read the content of the one that matters. Use list_domains to get the domainId.
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": {
"domainId": "<domainId>",
"q": "<q>"
},
"name": "search_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | The text to look for. At least 2 characters; a case-insensitive substring. | |
| type | No | Which mailbox direction to search. Defaults to `receive`. | |
| field | No | Which field to match. Defaults to `body` (subject, from, to and body text). | |
| limit | No | Maximum number of hits to return (default 20). | |
| domainId | Yes | The domain id — from `list_domains`. |