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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_component_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No |