search_emails
Find emails by subject or body content, filter by folder or date, and limit results to locate the messages you need.
Instructions
Search emails by subject or body content.
Args: query: Search query string (searches in subject and body) folder: Mail folder to search in (default: INBOX) from_date: Only emails from this date onwards (format: DD-MMM-YYYY, e.g., "01-Dec-2024") limit: Maximum number of results (default: 10, max: 50)
Returns: List of matching emails
Example: search_emails(query="API", from_date="01-Dec-2024", limit=5)
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": {
"query": "<query>"
},
"name": "search_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| folder | No | INBOX | |
| from_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |