fetch-emails
Retrieve emails from your inbox using filters for date range, sender addresses, subject keywords, and specific mailboxes to find relevant messages quickly.
Instructions
Get emails from the user's inbox. Can specify the mailbox (INBOX by default), a subject (string), date range (ISO format: YYYY-MM-DDTHH:mm:ss), and sender emails (list of strings) to filter emails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateRange | Yes | Date range is a dictionary with the keys "start" and "end". Must be provided on date time ISO string format. | |
| mailbox | No | Mailbox to fetch emails from | INBOX |
| senders | No | Optional array of email addresses to filter emails by sender | |
| subject | No | Optional subject to filter emails by subject or sender. Only sent if user provides a subject to search EXPLICITLY! |
Input Schema (JSON Schema)
{
"properties": {
"dateRange": {
"additionalProperties": false,
"description": "Date range is a dictionary with the keys \"start\" and \"end\". Must be provided on date time ISO string format.",
"properties": {
"end": {
"description": "End date of the range",
"type": "string"
},
"start": {
"description": "Start date of the range",
"type": "string"
}
},
"type": "object"
},
"mailbox": {
"default": "INBOX",
"description": "Mailbox to fetch emails from",
"type": "string"
},
"senders": {
"description": "Optional array of email addresses to filter emails by sender",
"items": {
"type": "string"
},
"type": "array"
},
"subject": {
"description": "Optional subject to filter emails by subject or sender. Only sent if user provides a subject to search EXPLICITLY!",
"type": "string"
}
},
"required": [
"dateRange"
],
"type": "object"
}