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

ranieleda-ui commented Jun 11, 2026 via email

Copy link
Copy Markdown

@ranieleda-ui

ranieleda-ui commented Jun 11, 2026 via email

Copy link
Copy Markdown

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