dillon1000/react
Commit
Browse files [react-devtools-cdt-mcp] add DOM element component lookup (#36822)
Integrates newly added `getComponentByHostInstance` tool from `react-devtools-facade` into `react-devtools-cdt-mcp`. The API uses `uid` of the element from CDT MCP tree snapshot, but under the hood it gets converted to the DOM Element reference, which is exactly what we pass to `getComponentByHostInstance`.
Changed paths3 files
First-parent comparisonpackages/react-devtools-cdt-mcp/README.md ModifiedM packages/react-devtools-cdt-mcp/src/DevToolsCdtMcp.js ModifiedM packages/react-devtools-cdt-mcp/src/__tests__/DevToolsCdtMcp-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…