Skip to main content
Glama

ios_find_element

Locate UI elements in iOS simulators using accessibility labels or values to obtain tap coordinates for automated testing, eliminating the need for screenshots.

Instructions

Find a UI element on iOS simulator by accessibility label or value. Returns element details including tap coordinates. Requires IDB (brew install idb-companion). Workflow: 1) wait_for_element, 2) find_element, 3) tap with returned coordinates. Prefer this over screenshots for button taps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoExact accessibility label match
labelContainsNoPartial label match (case-insensitive)
valueNoExact accessibility value match
valueContainsNoPartial value match (case-insensitive)
typeNoElement type to match (e.g., 'Button', 'TextField')
indexNoIf multiple elements match, select the nth one (0-indexed, default: 0)
udidNoOptional simulator UDID. Uses booted simulator if not specified.

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