Skip to main content
Glama

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
NameRequiredDescriptionDefault
patternYesRegex pattern to match component names (case-insensitive). Examples: 'Button', 'Screen$', 'List.*Item'
maxResultsNoMaximum number of results to return (default: 20)
includeLayoutNoInclude layout styles (padding, margin, flex) for each matched component
shortPathNoShow only last 3 path segments (default: true)
summaryNoReturn only component counts by name instead of full list (default: false)
formatNoOutput format: 'json' or 'tonl' (default, pipe-delimited rows, ~40% smaller)tonl

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/igorzheludkov/metro-logs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server