Skip to main content
Glama

inspect_component

Analyze React component details including props, styles, and state. Use after identifying components in the tree to examine specific instances with configurable depth for children inspection.

Instructions

Inspect a specific React component by name. DRILL-DOWN TOOL: Use after get_component_tree(structureOnly=true) to inspect specific components. Returns props, style, state (hooks), and optionally children tree. Use childrenDepth to control how deep nested children go.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentNameYesName of the component to inspect (e.g., 'Button', 'HomeScreen', 'FlatList')
indexNoIf multiple instances exist, which one to inspect (0-based index, default: 0)
includeStateNoInclude component state/hooks (default: true)
includeChildrenNoInclude children component tree
childrenDepthNoHow many levels deep to show children (default: 1 = direct children only, 2+ = nested tree)
shortPathNoShow only last 3 path segments (default: true)
simplifyHooksNoSimplify hooks output by hiding effects and reducing depth (default: true)

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