List network requests
list_network_requestsList a page's network requests with filters to find the JSON API calls it makes. Use the request ID to fetch full response bodies, avoiding DOM scraping.
Instructions
List the network requests the selected page has made.
Collection is automatic — unlike console capture, nothing needs enabling.
The main use is finding the JSON API a page calls: filter with resource_types=["XHR", "Fetch"], then pass the id from the square brackets to get_network_request to read the actual response body. That is usually far cheaper and more reliable than scraping the rendered DOM.
Only the most recent 1000 requests are retained, and each URL is truncated to 150 characters in this listing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_idx | No | 0-based page number, used together with page_size. | |
| page_size | No | Maximum number of requests to return. Omit to return all. | |
| url_filter | No | Only return requests whose URL contains this substring (plain text, not a regex), e.g. "/api/" or "graphql". | |
| resource_types | No | Only return these resource types. ["XHR", "Fetch"] is the useful filter for finding a page's own API calls. Matching is case-insensitive. Omit for all types. | |
| include_preserved_requests | No | Also include requests from before the last navigation — the server keeps the previous 3 navigations. Default false: current page only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |