search-emails
Search emails using keywords, date ranges, or custom Gmail queries.
Instructions
Search emails within a date range and/or with specific keywords
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": "search-emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_date | No | Start date in YYYY-MM-DD format (optional) | |
| end_date | No | End date in YYYY-MM-DD format (optional) | |
| keyword | No | Keyword to search in email subject and body (optional). Ignored if raw_query is provided. | |
| raw_query | No | Gmail advanced search query string (e.g., 'has:attachment from:boss'). If provided, other search parameters (dates, keyword) are ignored. | |
| folder | No | Folder to search in ('inbox' or 'sent', defaults to 'inbox') | inbox |
| limit | No | Maximum number of emails to return (default: 20) |