watchMailbox
Monitors mailbox changes by publishing notifications to a specified Cloud Pub/Sub topic, with optional Gmail label filtering.
Instructions
Watch for changes to the user's mailbox via Cloud Pub/Sub
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": {
"topicName": "<topicName>"
},
"name": "watchMailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labelIds | No | Label IDs to restrict notifications to | |
| topicName | Yes | Cloud Pub/Sub topic to publish notifications to | |
| labelFilterAction | No | Whether to include or exclude specified labels |