Skip to main content
Glama

tap

Tap at specific coordinates on iOS Simulator screens to automate testing and interaction tasks for mobile applications.

Instructions

Tap at specific (x, y) coordinates on the simulator screen

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX coordinate in points
yYesY coordinate in points
udidNoSimulator UDID (optional, defaults to booted simulator)

Implementation Reference

  • Implementation of the 'tap' tool handler that uses the 'idb' CLI to execute a tap at specific coordinates.
    private async tap(x: number, y: number, udid?: string) {
      const target = await resolveUdid(udid);
      try {
        await execAsync(`idb ui tap --udid ${target} ${x} ${y}`);
        return {
          content: [{ type: 'text', text: `Tapped (${x}, ${y}) on ${target}` }],
        };
      } catch (error: any) {
        throw new McpError(ErrorCode.InternalError, `Failed to tap: ${error.message}`);
      }
    }

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/xmuweili/app-screen-mcp'

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