Skip to main content
Glama

launch_app

Launch iOS apps on simulators by specifying bundle identifiers to test and automate mobile applications in controlled environments.

Instructions

Launch an app on a simulator

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bundle_idYesApp bundle identifier (e.g. com.example.myapp)
udidNoSimulator UDID (optional, defaults to booted simulator)

Implementation Reference

  • The handler function that executes the `launch_app` tool logic using `xcrun simctl`.
    private async launchApp(bundleId: string, udid?: string) {
      const target = await resolveUdid(udid);
      try {
        const { stdout } = await execAsync(`xcrun simctl launch ${target} ${bundleId}`);
        return {
          content: [{ type: 'text', text: `Launched ${bundleId} on ${target}. ${stdout.trim()}` }],
        };
      } catch (error: any) {
        throw new McpError(ErrorCode.InternalError, `Failed to launch app: ${error.message}`);
      }
    }
  • The schema definition for the `launch_app` tool.
    name: 'launch_app',
    description: 'Launch an app on a simulator',
    inputSchema: {
      type: 'object',
      properties: {
        bundle_id: { type: 'string', description: 'App bundle identifier (e.g. com.example.myapp)' },
        udid: { type: 'string', description: 'Simulator UDID (optional, defaults to booted simulator)' },
      },
      required: ['bundle_id'],
      additionalProperties: false,
    },
  • src/index.ts:498-499 (registration)
    The tool registration handler that maps the `launch_app` tool call to the `launchApp` function.
    case 'launch_app':
      return this.launchApp(args.bundle_id as string, args.udid);

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