Skip to content

feat: Add retaining paths MCP tool#2187

Merged
dinfuehr merged 1 commit into
ChromeDevTools:mainfrom
dinfuehr:di/retaining-paths
Jun 9, 2026
Merged

feat: Add retaining paths MCP tool#2187
dinfuehr merged 1 commit into
ChromeDevTools:mainfrom
dinfuehr:di/retaining-paths

Conversation

@dinfuehr

@dinfuehr dinfuehr commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

This PR adds the get_heapsnapshot_retaining_paths MCP tool. This can be used to find the paths from the target object to the GC roots which keep that object alive.

@dinfuehr dinfuehr changed the title Add retaining paths MCP tool feat: Add retaining paths MCP tool Jun 8, 2026
@dinfuehr

dinfuehr commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator Author

Note that I added this as a separate MCP tool. We've discussed merging them but get_heapsnapshot_retaining_paths only prints paths to the GC roots. But it doesn't print all retainers (=incoming edges) of an object like get_heapsnapshot_retainers does.

@dinfuehr dinfuehr requested a review from Lightning00Blade June 8, 2026 13:50
Comment thread src/McpResponse.ts

@Lightning00Blade Lightning00Blade left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@dinfuehr dinfuehr added this pull request to the merge queue Jun 9, 2026
Merged via the queue into ChromeDevTools:main with commit a97c642 Jun 9, 2026
19 of 20 checks passed
@dinfuehr dinfuehr deleted the di/retaining-paths branch June 9, 2026 13:02
@ranieleda-ui

This comment was marked as off-topic.

@ranieleda-ui

This comment was marked as off-topic.

pull Bot pushed a commit to oogalieboogalie/chrome-devtools-mcp that referenced this pull request Jun 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.3.0](ChromeDevTools/chrome-devtools-mcp@chrome-devtools-mcp-v1.2.0...chrome-devtools-mcp-v1.3.0)
(2026-06-18)


### 🎉 Features

* Add get_heapsnapshot_dominators MCP tool
([ChromeDevTools#2215](ChromeDevTools#2215))
([08c234e](ChromeDevTools@08c234e))
* Add retaining paths MCP tool
([ChromeDevTools#2187](ChromeDevTools#2187))
([a97c642](ChromeDevTools@a97c642))
* Add the get_heapsnapshot_edges MCP tool
([ChromeDevTools#2180](ChromeDevTools#2180))
([4f8eb7a](ChromeDevTools@4f8eb7a))
* include page title in list_pages output
([ChromeDevTools#2166](ChromeDevTools#2166))
([b646feb](ChromeDevTools@b646feb))
* **screenshot:** add CLI options to cap screenshot size at the source
([ChromeDevTools#1823](ChromeDevTools#1823))
([55c8a54](ChromeDevTools@55c8a54))
* Use HeapSnapshotProxy.nodeIndexById
([ChromeDevTools#2193](ChromeDevTools#2193))
([6bd8c91](ChromeDevTools@6bd8c91))


### 🛠️ Fixes

* handle missing third-party tool toolGroup description gracefully
([ChromeDevTools#2224](ChromeDevTools#2224))
([8fe398e](ChromeDevTools@8fe398e))
* handle screencast file extensions case-insensitively and clean up temp
dir on failure
([ChromeDevTools#2207](ChromeDevTools#2207))
([ba80096](ChromeDevTools@ba80096))
* limit windows test concurrency
([ChromeDevTools#2205](ChromeDevTools#2205))
([e77101e](ChromeDevTools@e77101e))
* Reset toolGroups before gathering toolGroups
([ChromeDevTools#2200](ChromeDevTools#2200))
([ed02047](ChromeDevTools@ed02047))
* return error message when screencast_stop is called with no active
recording
([ChromeDevTools#2209](ChromeDevTools#2209))
([9e32002](ChromeDevTools@9e32002))

---
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