search_emails
Search Gmail using standard query syntax to locate emails by sender, subject, or attachments. Get matching results with sender, subject, date, and snippet.
Instructions
Search Gmail using the standard Gmail search syntax. Returns matching emails with sender, subject, date, and snippet.
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 |
|---|---|---|---|
| query | Yes | Gmail search query (e.g. "from:boss@company.com subject:report has:attachment") | |
| maxResults | No | Maximum results to return (default: 10, max: 50) |