get_js_errors
Analyze JavaScript errors and unhandled exceptions across browsers and operating systems, then return JSON breakdowns by Browser and OS to diagnose runtime issues in Microsoft Clarity sessions.
Instructions
Analyze JavaScript errors and unhandled exceptions across browsers and operating systems.
Args: project_id: Microsoft Clarity Project ID. num_of_days: Lookback window in days (1, 2, or 3; defaults to 3). token: Optional Clarity API token.
Returns: Structured JSON breakdown of JavaScript script errors and error clicks by Browser and OS.
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": {
"project_id": "<project_id>"
},
"name": "get_js_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | ||
| project_id | Yes | ||
| num_of_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |