gmail_search_emails
Search Gmail messages with query syntax to locate emails by sender, subject, label, date, attachment, or read status. Set max_results to limit returned matches.
Instructions
Search emails using Gmail query syntax.
Args: query: Gmail search query. Examples: - "from:someone@example.com" - "subject:meeting" - "is:unread" - "has:attachment" - "after:2024/01/01" - "label:work" - "in:sent" - Combine: "from:boss@company.com is:unread after:2024/01/01" max_results: Maximum number of results to return (default: 20)
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": "gmail_search_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |