Skip to content

Conversation

@OzTamir
Copy link
Contributor

@OzTamir OzTamir commented Sep 26, 2025

Summary

This PR build upon #145 to also adds filtering by resource type to list_network_requests (Also see: #137 and #107).

Motivation

Agents often need specific request types (e.g., scripts, stylesheets, images). Filtering reduces noise and improves performance.

Changes

  • New parameter: resourceType (array) to filter by resource types
  • Supported types: all resource types supported by Puppeteer
  • Backward compatible: when omitted, returns all requests

Filtering runs before pagination, so pagination applies to the filtered results.

@OrKoN OrKoN changed the title Add network request filtering by resource type feat: add network request filtering by resource type Sep 26, 2025
@OrKoN OrKoN force-pushed the feat/filter_network_requests_by_type branch from 19b4d5c to e5ea057 Compare September 26, 2025 09:13
@OrKoN OrKoN self-requested a review September 26, 2025 09:25
Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@OzTamir OzTamir requested a review from OrKoN September 26, 2025 11:27
@OrKoN OrKoN force-pushed the feat/filter_network_requests_by_type branch from 9ddf820 to 23b9279 Compare September 26, 2025 13:12
@OrKoN OrKoN enabled auto-merge (squash) September 26, 2025 13:12
@OrKoN OrKoN force-pushed the feat/filter_network_requests_by_type branch from 23b9279 to 68307dc Compare September 26, 2025 13:15
@OrKoN OrKoN merged commit 59d81a3 into ChromeDevTools:main Sep 26, 2025
16 checks passed
OrKoN pushed a commit that referenced this pull request Sep 26, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](chrome-devtools-mcp-v0.3.0...chrome-devtools-mcp-v0.4.0)
(2025-09-26)


### Features

* add network request filtering by resource type
([#162](#162))
([59d81a3](59d81a3))


### Bug Fixes

* add core web vitals to performance_start_trace description
([#168](#168))
([6cfc977](6cfc977))
* add data format information to trace summary
([#166](#166))
([869dd42](869dd42))
* expose --debug-file argument
([#164](#164))
([22ec7ee](22ec7ee))
* typo in the disclaimers
([#156](#156))
([90f686e](90f686e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants