Skip to main content
Glama

ios_tap_element

Tap iOS app elements using accessibility labels or partial text matches to automate testing and interaction workflows.

Instructions

Tap an element by its accessibility label. Requires IDB (brew install idb-companion). TIP: Consider using ocr_screenshot first - it returns ready-to-use tap coordinates for all visible text and works without requiring accessibility labels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoExact accessibility label to match (e.g., 'Home', 'Settings')
labelContainsNoPartial label match, case-insensitive (e.g., 'Circular' matches 'Circulars, 3, 12 total')
indexNoIf multiple elements match, tap the nth one (0-indexed, default: 0)
durationNoOptional tap duration in seconds (for long press)
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