gmail_messages_list
Lists and filters Gmail messages from a user's mailbox by search query, labels, or pagination to find relevant emails for billing workflows.
Instructions
List messages in the user's mailbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid:<somemsgid@example.com> is:unread". Parameter cannot be used when accessing the api using the gmail.metadata scope. | |
| userId | No | The user's email address. The special value 'me' can be used to indicate the authenticated user. | me |
| labelIds | No | Only return messages with labels that match all of the specified label IDs. Messages in a thread might have labels that other messages in the same thread don't have. | |
| pageToken | No | Page token to retrieve a specific page of results in the list. | |
| maxResults | No | Maximum number of messages to return. This field defaults to 100. The maximum allowed value for this field is 500. | |
| includeSpamTrash | No | Include messages from SPAM and TRASH in the results. |