network_capture
Control browser network capture. Start, stop, clear, or check status, with URL filtering and response body capture options.
Instructions
Unified network capture control (v0.9.0).
Replaces start_network_capture / stop_network_capture.
Args: action: "start" — begin capturing network events "stop" — stop capturing (buffer retained) "clear" — clear the capture buffer "status" — return current capture state url_pattern: Glob pattern for "start" (default "**/*" captures all). capture_body: For "start" only; capture response bodies (more memory). max_body_size: For start; retained characters per response, 0..2000000. Playwright still reads the complete response before truncation. wait_timeout_ms: For stop; wait up to 30000ms for captured responses. New requests stop immediately; unfinished work is reported, not replayed. Clear cancels pending work; IDs remain monotonic until browser close.
Returns: dict with action result + current status snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| url_pattern | No | **/* | |
| capture_body | No | ||
| max_body_size | No | ||
| wait_timeout_ms | No |