gmail search messages
gmail_search_messagesSearch Gmail messages using Gmail search syntax and return matching message IDs with headers and snippets, so you can locate emails and retrieve full bodies separately.
Instructions
Search Gmail with Gmail search syntax (for example 'from:alice newer_than:7d').
Returns message ids with From, To, Subject, Date, and snippet when include_headers is true. Use gmail_get_message for the body.
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": "gmail_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| page_token | No | ||
| max_results | No | ||
| include_headers | No | ||
| include_spam_trash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||