Skip to main content
Glama

inspect_screen

Retrieves the current view hierarchy of a booted iOS simulator, showing only meaningful nodes (text, labels, resource-ids) by default or the full nested tree for detailed inspection.

Instructions

Returns the current view hierarchy for a booted iOS simulator (podium's target platform). Uses idb's flat accessibility tree when idb is installed (fast), else maestro hierarchy. Defaults to compact:true — a flattened list of only the nodes that carry text / accessibility labels / resource-ids (dramatically smaller than the raw tree). Pass compact:false for the full nested hierarchy. LIMITATION: WebView (WKWebView/WebView) content is opaque — the hierarchy shows a single WebView node with no children. Web-rendered buttons, inputs, and labels are invisible to this tool. For WebView apps, identify elements visually via screenshot then calculate logical-point coordinates (screenshot pixels ÷ device scale factor, typically ÷3 on 3× Retina).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesSimulator / device UDID (from device_list)
compactNoReturn a flattened list of meaningful nodes only (default true). false = full nested tree.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses key behaviors: the fallback between idb and maestro, the default compact mode behavior, and the WebView opacity limitation. No annotations are provided, but the description compensates well. It does not cover authentication or rate limits, but these are not critical for a read-only hierarchy tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured, starting with the main purpose, then detailing parameters, and finally noting limitations. Every sentence serves a purpose, though it could be slightly more concise by removing redundant phrases like 'dramatically smaller'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of an output schema, the description adequately explains the output format (flattened list vs full tree) and the key limitation. It does not specify the exact format (e.g., JSON or XML), but for an agent, this is sufficient to understand what to expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the description adds meaningful context beyond the schema: it explains the default value of compact (true), what the compact mode does (flattened list of meaningful nodes), and provides a practical size comparison. This helps the agent understand the impact of the parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool returns the current view hierarchy for a booted iOS simulator, specifying the platform (podium's target platform) and the underlying methods (idb or maestro). This clearly distinguishes it from sibling tools like screenshot or screen_size, which deal with visual representations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides guidance on when to use compact:true vs false, and addresses the WebView limitation by advising an alternative approach (screenshot + coordinate calculation). It does not explicitly list when not to use the tool, but the context is clear enough for an agent to make correct decisions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/hoainho/podium-mcp'

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