react-profiler-fiber-tree
Inspect a React app's fiber tree to trace component ancestry or verify React Compiler activity via useMemoCache. Returns nested JSON with component names, durations, and children for profiling and debugging.
Instructions
Inspect the React fiber tree and return a JSON representation of the component hierarchy. Use when tracing ancestry of a library component or checking for useMemoCache hook (confirms React Compiler is active on a component). Returns a nested JSON tree of fiber nodes with name, tag, actualDuration, selfBaseDuration, and children. Fails if the React DevTools hook is not present or no fiber roots have been committed yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Metro server port. Optional — omit it to use this device's port, 8081 by default. Ignored for Chromium, whose CDP port is encoded in device_id. | |
| filter | No | Regex string to filter component names | |
| device_id | Yes | Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). | |
| max_depth | No | Maximum tree depth to traverse (default 10) |