get_todays_emails
Retrieve all emails received today from a specified mailbox, sorted by date with newest first, using environment variables for default account and mailbox settings.
Instructions
Get all emails received today from a mailbox.
Args: account: Account name. Uses JXA_MAIL_DEFAULT_ACCOUNT env var or first account if not specified. mailbox: Mailbox name. Uses JXA_MAIL_DEFAULT_MAILBOX env var or "Inbox" if not specified.
Returns: List of today's emails sorted by date (newest first).
Example: >>> get_todays_emails("Work") [{"subject": "Urgent: Review needed", "sender": "team@work.com", ...}]
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": "get_todays_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| mailbox | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |