| App | Microsoft Clarity |
| Operation ID | microsoft_clarity_list_session_recordings |
| Type | Action |
| Connection | microsoft_clarity (required) |
| Credits per run | 1 |
| Agent / MCP tool | Yes |
Inputs
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
date_range | DateRange | No | - | Session dates to include, as UTC days, both ends inclusive. Use preset=‘FIXED’ with start/end dates (YYYY-MM-DD), or a preset such as TODAY or LAST_7_DAYS. Default: the last 3 days including today. |
filters | object or string | No | - | Clarity recording filters, sent as-is (all optional, combined with AND). URL lists visitedUrls, entryUrls, exitUrls take [{“url”, “operator”}] with operator contains, startsWith, endsWith, excludes, isExactly, isExactlyNot, matchesRegex or excludesRegex. Value lists: deviceType (Mobile, Tablet, PC, Email, Other), browser (Chrome, Edge, Firefox, Safari, Opera, SamsungInternet, MobileApp, Other, …), os (Windows, MacOS, iOS, Android, Linux, ChromeOS, Other), channel (OrganicSearch, Direct, Email, Display, Social, PaidSearch, Affiliate, Referral, Video, Audio, SMS, AITools, PaidAITools, Other), country, state, city (full names), source, medium, campaign, smartEvents (e.g. Purchase, SubmitForm, AddToCart, SignUp, BeginCheckout, Login), javascriptErrors and clickErrors (messages; ” matches any error), productBrand, checkoutAbandonmentStep. Single values: userType (NewUser, ReturningUser), sessionIntent (Low Intention, Medium Intention, High Intention), referringUrl, clickedText, productName. true/false flags: rageClickPresent, deadClickPresent, quickbackClickPresent, excessiveScrollPresent, enteredTextPresent, selectedTextPresent, resizeEventPresent, cursorMovement, productPurchases, productAvailability. Ranges as {“min”, “max”} (either may be null): sessionDuration, pageDuration, visiblePageDuration, hiddenPageDuration (minutes), scrollDepth and performanceScore (0-100), pagesCount, sessionClickEventCount, pageClickEventCount, largestContentfulPaint (seconds), firstInputDelay (ms), cumulativeLayoutShift, productPrice, productRating, productRatingsCount. Use the listed spellings exactly: Clarity fails with a server error on a value it does not know. The date comes from date_range. Example: {“rageClickPresent”: true, “deviceType”: [“Mobile”], “visitedUrls”: [{“url”: “/pricing”, “operator”: “contains”}]} |
sort_by | enum (SessionStart_DESC, SessionStart_ASC, SessionDuration_ASC, SessionDuration_DESC, SessionClickCount_ASC, SessionClickCount_DESC, PageCount_ASC, PageCount_DESC) | No | SessionStart_DESC | Sort order: SessionStart, SessionDuration, SessionClickCount or PageCount, each _ASC or _DESC. Default SessionStart_DESC (newest first). |
limit | integer | No | 100 | Number of recordings to return, 1 to 250. Default 100. |
DateRange
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
start | string | No | - | The start date of the date range to query, format: YYYY-MM-DD or dynamic node reference like {{nodeId__data.start_date}}. Required when preset is ‘FIXED’ or ‘CUSTOM’. |
end | string | No | - | The end date of the date range to query, format: YYYY-MM-DD or dynamic node reference like {{nodeId__data.end_date}}. Required when preset is ‘FIXED’ or ‘CUSTOM’. |
preset | string | No | - | Predefined date ranges or input modes: - Use ‘FIXED’ or leave empty when you want to specify exact dates (YYYY-MM-DD format) in start/end fields - Use ‘CUSTOM’ when you want to use dynamic values from other nodes ({{nodeId__data.start_date}} format) in start/end fields - Use other presets (TODAY, YESTERDAY, LAST_7_DAYS, etc.) for predefined date ranges (start/end will be ignored) LAST_N_MONTHS and LAST_N_WEEKS are complete calendar periods ending with last month or last week, so they exclude the current month or week; for a rolling window up to yesterday use LAST_N_DAYS (for example LAST_90_DAYS) or a FIXED range. When using ‘FIXED’ or ‘CUSTOM’, both start and end fields are required. |
compare | CompareOptions | No | - | Optional comparison date range settings. ALWAYS use this field for comparisons; DO NOT create additional requests or nodes, as the backend returns current, comparison, and delta metrics in a single call. If one period has no data at all, only the period with data is returned and no delta row; treat the missing period as zero. |
CompareOptions
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
start | string | No | - | The start date of the comparison range, format: YYYY-MM-DD. Optional if preset is provided. |
end | string | No | - | The end date of the comparison range, format: YYYY-MM-DD. Optional if preset is provided. |
preset | string | No | - | Predefined comparison ranges. When provided, start and end will be ignored. |
comparison_format | string | No | rows | Comparison output layout: ‘rows’ returns separate rows for current, comparison, and delta along with date ranges; ‘columns’ returns a single row with delta values only as additional *_pct or *_change columns depending on comparison_value_type. |
comparison_value_type | string | No | percentage | Value type: ‘percentage’ or ‘absolute’ |
Output
Type:List[Dict]
Returns one row per session: link (Clarity player URL), timestamp (UTC), totalDuration, activeDuration, pagesCount, sessionClickCount and timeline, a list of the pages visited with url, displayTitle, referrerUrl, start, duration and pageLoadTime (ms), LCP, CLS, FID, score and timelineEvents (clicks with text, link, eventtype, start).
Fields: dynamic (depend on the inputs)
