web_capture_live_session
Capture live dynamic web sessions by recording HTTP/XHR/Fetch traffic as HAR 1.2, WebSocket frames, cookies, and storage state, then generate an offline replay server for analysis.
Instructions
Captures live dynamic web sessions, intercepts HTTP/XHR/Fetch traffic into strict HAR 1.2 format, records WebSocket frame streams, snapshots cookies/localStorage state, and generates a self-contained offline WebSocket replay server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target website URL to capture (e.g. https://example.com) | |
| saveHar | No | Whether to compile and save strict HAR 1.2 archive (default: true) | |
| outputDir | No | Local directory to save session artifacts (default: ./live_session) | |
| injectState | No | Optional cookies, localStorage, and sessionStorage to inject during capture | |
| interactiveMock | No | Generate offline WebSocket replayer and mock bridge (default: true) | |
| recordWebSockets | No | Whether to record WebSocket connections and frame streams (default: true) | |
| maxNetworkEntries | No | Maximum number of HTTP network transactions to record (default: 100) | |
| sessionDurationMs | No | Duration to record live session in milliseconds (default: 5000) |