Export network log as HAR
export_harExport the live network log to a HAR file for Burp, ZAP, or DevTools. Includes headers, cookies, POST bodies, timings, server IPs, and WebSocket frames; response bodies when available.
Instructions
Write the network log to a HAR 1.2 file — importable into Burp, ZAP, Chrome DevTools, Charles and anything else that reads HAR.
Headers are the ones that went over the wire, Cookie and Set-Cookie included, with POST bodies, status, timing, server IP and WebSocket frames. Response bodies come from capture_bodies' files where available — start a capture first for a HAR that has every body — and otherwise from Chrome's buffer, which only still holds recent ones on the current tab.
The file holds live session cookies and tokens; treat it like a password.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
| file_path | Yes | Where to write the .har file. | |
| url_filter | No | Only requests whose URL contains this substring, e.g. "/api/". Empty exports all. | |
| include_bodies | No | Embed response bodies: from capture_bodies' files where there is one, otherwise whatever Chrome still holds. Off gives headers and timing only. | |
| include_preserved_requests | No | Also export the previous 3 navigations' requests, not just the current page's. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |