Actions before an error
get_user_action_before_errorRetrieve the preceding user actions (clicks, typing, navigation) that led to a console error to understand its trigger.
Instructions
Reconstruct what the user did right before a console error: returns the last window user actions (click/type/navigate) preceding the error, to explain how it was triggered. Returns JSON { errorId, errorTs, actions }. Get errorId from get_session_console_errors first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session id from list_recent_sessions. | |
| errorId | Yes | Console error id from get_session_console_errors. | |
| window | No | How many preceding user actions to return (1-50; default 10). |