react-profiler-fiber-tree
Inspect the React fiber tree to view component hierarchy as JSON, trace ancestry of library components, and verify React Compiler activation via useMemoCache.
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 | |
| 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) |