Get component tree
get_component_treeInspect a depth-limited React Native component tree with testID and text labels, counting only authored components and omitting host wrappers and dev-only UI.
Instructions
Depth-limited React component tree via the React DevTools hook, with testID and text where present. max_depth counts only components a developer actually authored — host components (RCTView, RCTText, ...) and structural wrappers (forwardRef/memo/context, styling HOCs) are free and can repeat any number of times without spending budget. RN's own dev-only infrastructure (LogBox, the debugging overlay, the root tag context) is omitted from the output entirely. Large trees are capped and marked truncated rather than returned unbounded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No |