read_network_requests
Monitor network activity and debug API calls by retrieving all HTTP requests a page makes, including XHR, Fetch, documents, images, and cross-origin, from any tab.
Instructions
Read HTTP network requests (XHR, Fetch, documents, images, etc.) from a specific tab. Useful for debugging API calls, monitoring network activity, or understanding what requests a page is making. Returns all network requests made by the current page, including cross-origin requests. Requests are automatically cleared when the page navigates to a different domain. If you don't have a valid tab ID, use tabs_context first to get available tabs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | If true, clear the network requests after reading to avoid duplicates on subsequent calls. Default is false. | |
| limit | No | Maximum number of requests to return. Defaults to 100. Increase only if you need more results. | |
| tabId | Yes | Tab ID to read network requests from. Must be a tab in the current group. Use tabs_context first if you don't have a valid tab ID. | |
| urlPattern | No | Optional URL pattern to filter requests. Only requests whose URL contains this string will be returned (e.g., '/api/' to filter API calls, 'example.com' to filter by domain). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provenance | No |