Skip to main content
Glama

get_screen_layout

Retrieve layout details for all screen components to analyze positioning, dimensions, and visual structure in React Native apps. Use after get_component_tree to understand component relationships.

Instructions

Get layout information for all components on screen. USE AFTER get_component_tree: First use get_component_tree(structureOnly=true) to understand structure, then use this tool OR find_components with includeLayout=true to get layout details for specific areas. This tool returns full layout data which can be large for complex screens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxDepthNoMaximum tree depth to traverse (default: 65, balanced for most screens)
componentsOnlyNoOnly show custom components, hide host components (View, Text, etc.)
shortPathNoShow only last 3 path segments instead of full path (default: true)
summaryNoReturn only component counts by name instead of full element 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