Skip to content

Network

Domain: network

Request capture, response extraction, HAR export, safe replay, and performance tracing.

Profiles

  • workflow
  • full

Typical scenarios

  • Capture requests
  • Extract auth material
  • Replay requests safely
  • Record performance traces

Common combinations

  • browser + network
  • network + workflow

Representative tools

  • network_enable — Enable network request monitoring. Must be called before page_navigate to capture requests.
  • network_disable — Disable network request monitoring
  • network_get_status — Get network monitoring status (enabled, request count, response count)
  • network_get_requests — Get captured network requests. Large results (>25KB) automatically return a summary with detailId.
  • network_get_response_body — Get response body for a specific request. Auto-truncates responses >100KB. Use returnSummary=true for large files.
  • network_get_stats — Get network statistics (total requests, response count, error rate, timing)
  • performance_get_metrics — Get page performance metrics (Web Vitals: FCP, LCP, FID, CLS)
  • performance_start_coverage — Start JavaScript and CSS code coverage recording
  • performance_stop_coverage — Stop coverage recording and return coverage report
  • performance_take_heap_snapshot — Take a V8 heap memory snapshot

Full tool list (29)

ToolDescription
network_enableEnable network request monitoring. Must be called before page_navigate to capture requests.
network_disableDisable network request monitoring
network_get_statusGet network monitoring status (enabled, request count, response count)
network_get_requestsGet captured network requests. Large results (>25KB) automatically return a summary with detailId.
network_get_response_bodyGet response body for a specific request. Auto-truncates responses >100KB. Use returnSummary=true for large files.
network_get_statsGet network statistics (total requests, response count, error rate, timing)
performance_get_metricsGet page performance metrics (Web Vitals: FCP, LCP, FID, CLS)
performance_start_coverageStart JavaScript and CSS code coverage recording
performance_stop_coverageStop coverage recording and return coverage report
performance_take_heap_snapshotTake a V8 heap memory snapshot
performance_trace_startStart a Chrome Performance Trace recording using the CDP Tracing domain.
performance_trace_stopStop a running Performance Trace and save the trace file.
profiler_cpu_startStart CDP CPU profiling.
profiler_cpu_stopStop CPU profiling, save the profile, and return top hot functions.
profiler_heap_sampling_startStart V8 heap allocation sampling.
profiler_heap_sampling_stopStop heap allocation sampling and return the top allocators.
console_get_exceptionsGet captured uncaught exceptions from the page
console_inject_script_monitorInject a monitor that tracks dynamically created script elements. Use persistent: true to survive page navigations.
console_inject_xhr_interceptorInject an XHR interceptor to capture AJAX request/response data. Use persistent: true for the interceptor to survive page navigations.
console_inject_fetch_interceptorInject a Fetch API interceptor to capture fetch request/response data including headers, body, and timing.
console_clear_injected_buffersClear injected in-page monitoring buffers (XHR/Fetch queues and dynamic script records) without removing interceptors
console_reset_injected_interceptorsReset injected interceptors/monitors to recover from stale hook state and allow clean reinjection
console_inject_function_tracerInject a Proxy-based function tracer to log all calls to a named function. Use persistent: true to survive page navigations.
network_extract_authScan all captured network requests and extract authentication credentials (tokens, cookies, API keys, signatures).
network_export_harExport all captured network traffic as a standard HAR 1.2 file.
network_replay_requestReplay a previously captured network request with optional modifications.
network_intercept_responseAdd response interception rules using CDP Fetch domain. Matched requests will receive a custom response instead of the real server response.
network_intercept_listList all active response interception rules with hit statistics.
network_intercept_disableRemove interception rules. Provide ruleId to remove a single rule, or all=true to disable all interception.

Released under AGPL-3.0-only