watch_mailbox
Monitor changes in a user's Gmail mailbox by specifying Cloud Pub/Sub topics and label filters. Configure notifications to include or exclude specific labels for targeted updates.
Instructions
Watch for changes to the user's mailbox
Input Schema
Name | Required | Description | Default |
---|---|---|---|
labelFilterAction | No | Whether to include or exclude the specified labels | |
labelIds | No | Label IDs to restrict notifications to | |
topicName | Yes | The name of the Cloud Pub/Sub topic to publish notifications to |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"labelFilterAction": {
"description": "Whether to include or exclude the specified labels",
"enum": [
"include",
"exclude"
],
"type": "string"
},
"labelIds": {
"description": "Label IDs to restrict notifications to",
"items": {
"type": "string"
},
"type": "array"
},
"topicName": {
"description": "The name of the Cloud Pub/Sub topic to publish notifications to",
"type": "string"
}
},
"required": [
"topicName"
],
"type": "object"
}