User Session Count
rybbit_get_user_session_countRetrieve a single user's daily session counts over a specified time range to visualize engagement intensity with calendar heatmaps or sparklines.
Instructions
Get the per-day session count for a single user across the requested time range. Useful for plotting user engagement intensity (calendar heatmap or sparkline).
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": {
"siteId": "<siteId>",
"userId": "<userId>"
},
"name": "rybbit_get_user_session_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site ID (numeric ID or domain identifier) | |
| userId | Yes | User ID — either identified_user_id or device hash user_id | |
| endDate | No | End date (YYYY-MM-DD) | |
| timeZone | No | IANA timezone (default UTC) | |
| startDate | No | Start date (YYYY-MM-DD) | |
| pastMinutesEnd | No | ||
| pastMinutesStart | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| note | No | Caveat about this response, e.g. how many rows were returned and how to get the rest | |
| truncated | No | True when rows were dropped to keep the response under the size cap |