search_emails
Search and filter emails by date, sender, recipient, subject, attachments, and keywords within a specified mailbox using the JMAP MCP Server.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
inputSchema | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"inputSchema": {
"additionalProperties": false,
"properties": {
"excludeMailboxIds": {
"description": "Mailboxes to exclude.",
"items": {
"type": "string"
},
"type": "array"
},
"hasAttachment": {
"description": "Only emails with/without attachments.",
"type": "boolean"
},
"hasKeyword": {
"description": "Only emails with this keyword.",
"type": "string"
},
"limit": {
"default": 15,
"description": "Max number of threads/emails to return.",
"type": "number"
},
"mailboxId": {
"description": "The mailbox to search in.",
"type": "string"
},
"notKeyword": {
"description": "Only emails without this keyword.",
"type": "string"
},
"receivedAfter": {
"description": "Only emails received after this date (ISO 8601).",
"format": "date-time",
"type": "string"
},
"receivedBefore": {
"description": "Only emails received before this date (ISO 8601).",
"format": "date-time",
"type": "string"
},
"searchBcc": {
"description": "Filter by recipient (Bcc).",
"type": "string"
},
"searchBody": {
"description": "Filter by body content.",
"type": "string"
},
"searchCc": {
"description": "Filter by recipient (Cc).",
"type": "string"
},
"searchFrom": {
"description": "Filter by sender.",
"type": "string"
},
"searchSubject": {
"description": "Filter by subject.",
"type": "string"
},
"searchText": {
"description": "Full-text search.",
"type": "string"
},
"searchTo": {
"description": "Filter by recipient (To).",
"type": "string"
}
},
"required": [
"mailboxId"
],
"type": "object"
}
},
"required": [
"inputSchema"
],
"type": "object"
}