search
Find emails in a Gmail mailbox using Gmail query syntax. Supports pagination, spam/trash inclusion, and adjustable result limits.
Instructions
(unconfigured) Search a mailbox with Gmail query syntax.
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": {
"account": "<account>",
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| account | Yes | ||
| page_token | No | ||
| max_results | No | ||
| include_spam_trash | No |