Network Requests
network_requestsList captured network requests for a tab—method, URL, status, type, timing, and size—to debug API calls, failures, or page loads. Capture starts when CDP first touches the tab.
Instructions
List the network requests a tab has made: method, url, status, type, timing and transferred size. No bodies. Headers are left out unless include_headers is set, and even then cookie, authorization and set-cookie values are redacted. Needs the DevTools engine. URLs are shown without their query string and fragment, since queries often carry tokens; include_query keeps the query. Header names that look like credentials (cookie, authorization, anything with token, secret, key, session or signature in the name, x-auth-*) are redacted. Capture starts the first time any CDP tool touches this tab, and CDP has no history to read back, so nothing from before that is here. Call this tool (or cdp_status then any CDP tool) before the action you want to observe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only this resource type, for example Fetch, XHR, Document, Script, Image | |
| clear | No | Empty this tab's network buffer after reading | |
| limit | No | Newest entries to return, at most 500 | |
| tab_id | No | Arc tab id from list_tabs. Omit to use the tab you opened last. Unlike other read tools this never falls back to the tab the user is looking at: with no id and no tab of yours it is refused, so pass this or call open_url first. | |
| failed_only | No | Only requests that failed or returned status 400 or above | |
| url_contains | No | Only requests whose url contains this text | |
| include_query | No | Keep the url query string. Off by default because queries often carry tokens, and url_contains then matches the url without its query. | |
| include_headers | No | Include request and response headers, with credential headers redacted |