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
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Maximum tree depth to traverse (default: 65, balanced for most screens) | |
| componentsOnly | No | Only show custom components, hide host components (View, Text, etc.) | |
| shortPath | No | Show only last 3 path segments instead of full path (default: true) | |
| summary | No | Return only component counts by name instead of full element list (default: false) | |
| format | No | Output format: 'json' or 'tonl' (default, pipe-delimited rows, ~40% smaller) | tonl |