gmail_search_messages
Search Gmail messages using Gmail search syntax (e.g., from:, subject:, is:unread) for a specified Google account.
Instructions
Search for messages in Gmail using Gmail search syntax (e.g., "from:user@example.com", "subject:hello", "is:unread")
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": {
"accountId": "<accountId>",
"query": "<query>"
},
"name": "gmail_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Gmail search query | |
| accountId | Yes | The Google account ID, alias, or email | |
| pageToken | No | Token for pagination | |
| maxResults | No | Maximum number of results (default: 20) |