gmail_list_threads
List Gmail threads matching a search query, with filters for labels, pagination, and control over spam/trash inclusion.
Instructions
List Gmail threads with optional search query
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_list_threads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Gmail search query to filter threads | |
| labelIds | No | Comma-separated label IDs to filter | |
| pageToken | No | Page token for pagination | |
| maxResults | No | Max threads to return (default 20, max 500) | |
| includeSpamTrash | No | Include SPAM and TRASH (default false) |