get_pubnub_presence
Retrieve real-time presence data for PubNub channels or groups to monitor active users, occupancy counts, and subscriber UUIDs. Input channel or group names to receive JSON-formatted presence information.
Instructions
Retrieves real-time presence information for specified PubNub channels and channel groups. Call this tool when you need to monitor active users, occupancy counts, and subscriber UUIDs. Provide channel names and/or channel group names. Returns presence data in JSON format.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
channelGroups | No | List of channel group names (strings) to query presence data for | |
channels | No | List of channel names (strings) to query presence data for |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"channelGroups": {
"default": [],
"description": "List of channel group names (strings) to query presence data for",
"items": {
"type": "string"
},
"type": "array"
},
"channels": {
"default": [],
"description": "List of channel names (strings) to query presence data for",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}