find_components
Search for React Native components by name pattern to retrieve layout information and styling details for targeted debugging and analysis.
Instructions
Find components matching a name pattern. TARGETED SEARCH: Use after get_component_tree(structureOnly=true) to find specific components by pattern and get their layout info. More efficient than get_screen_layout for targeted queries. Use includeLayout=true to get padding/margin/flex styles.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regex pattern to match component names (case-insensitive). Examples: 'Button', 'Screen$', 'List.*Item' | |
| maxResults | No | Maximum number of results to return (default: 20) | |
| includeLayout | No | Include layout styles (padding, margin, flex) for each matched component | |
| shortPath | No | Show only last 3 path segments (default: true) | |
| summary | No | Return only component counts by name instead of full list (default: false) | |
| format | No | Output format: 'json' or 'tonl' (default, pipe-delimited rows, ~40% smaller) | tonl |