export_network_capture
Export captured network traffic to a JSON file, filtering by URL and optionally including sensitive headers and bodies for analysis.
Instructions
Export a versioned JSON snapshot of this manager's retained capture.
Args: save_path: New local JSON path; existing files are never overwritten. include_body: Include captured request/response bodies only together with include_sensitive=True. Does not fetch or replay requests. include_sensitive: Opt in to original headers, query values and bodies. Default masks all header/query values, removes URL credentials and fragments, and omits bodies. URL paths are retained: this is not full anonymization. Keep original captures out of public repositories. url_filter: Optional URL substring filter.
Returns: Path, count, redaction mode and capture status including pending/dropped work. For a settled snapshot call network_capture(stop, wait_timeout_ms).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | Yes | ||
| url_filter | No | ||
| include_body | No | ||
| include_sensitive | No |