List sessions
list_sessionsScreen recordings (session replays) for a site over a date window (max 31 days), newest first. Every session listed has a recording, and its replay_url opens it in the player: use this tool whenever the user asks for replays or recordings to watch. Each row carries the entry page, duration, landing utm tags and source. Filter by entry_pathname (where the session started), pathname (a page visited at any point), min_duration_seconds, source (the name get_traffic_sources returns), utm tag, or campaign_id / ad_id (the ids get_campaign_spend returns) to see the sessions an ad brought. Meta ads: source is the app the visitor clicked in (Facebook, Instagram or Threads), while utm_source keeps what the ad URL carried, often facebook for every placement, so filter on source=Instagram for an Instagram placement; sessions recorded before this attribution existed show every Meta placement as Facebook. Paginate with the returned next_cursor (pass cursor and cursor_id back verbatim) to collect every match. Each session_id opens with get_session (the page journey), get_session_replay (what the visitor did, as facts) and, where available, get_session_frames (what the pages looked like).
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": {
"site_id": "<site_id>"
},
"name": "list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | No | Only sessions whose landing URL carried this ad id (an ad_id from get_campaign_spend with grain=ad) | |
| limit | No | Max rows to return (default 20) | |
| cursor | No | next_cursor.cursor from the previous page | |
| source | No | Only sessions from this traffic source, as get_traffic_sources names it (e.g. Instagram, Facebook, Threads, Google); direct traffic has no source to filter on | |
| site_id | Yes | Site id from list_sites (UUID) | |
| end_date | No | ISO date (YYYY-MM-DD). Defaults to today. | |
| pathname | No | Only sessions that visited this pathname at any point, e.g. /checkout (use entry_pathname for the page a session started on) | |
| referrer | No | Only sessions with exactly this referrer URL | |
| cursor_id | No | next_cursor.cursor_id from the previous page | |
| start_date | No | ISO date (YYYY-MM-DD). Defaults to 30 days before end_date. | |
| utm_medium | No | Only visits whose landing URL carried this utm_medium value (exact match) | |
| utm_source | No | Only visits whose landing URL carried this utm_source value (exact match) | |
| campaign_id | No | Only sessions whose landing URL carried this campaign id (a campaign_id from get_campaign_spend) | |
| utm_campaign | No | Only visits whose landing URL carried this utm_campaign value (exact match) | |
| entry_pathname | No | Only sessions that started on this pathname (their entry_pathname), e.g. / or /products/blue-shirt | |
| min_duration_seconds | No | Only sessions that lasted at least this many seconds (their duration_seconds, first to last recorded event) |