XcodeBuildMCP

v1.12.8
io.github.cameroncooke/XcodeBuildMCP Checked 1 hour ago Published 1 year ago

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

build_device

Builds an app from a project or workspace for a physical Apple device. Provide exactly one of projectPath or workspacePath. Example: build_device({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })

ParameterTypeDescription
scheme *stringThe scheme to build
configurationstringBuild configuration (Debug, Release)
derivedDataPathstringPath to derived data directory
extraArgsarrayAdditional arguments to pass to xcodebuild
preferXcodebuildbooleanPrefer xcodebuild over faster alternatives
projectPathstringPath to the .xcodeproj file
workspacePathstringPath to the .xcworkspace file

clean

Cleans build products for either a project or a workspace using xcodebuild. Provide exactly one of projectPath or workspacePath. Platform defaults to iOS if not specified. Example: clean({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme', platform: 'iOS' })

ParameterTypeDescription
configurationstringOptional: Build configuration to clean (Debug, Release, etc.)
derivedDataPathstringOptional: Path where derived data might be located
extraArgsarrayAdditional xcodebuild arguments
platformstringOptional: Platform to clean for (defaults to iOS). Choose from macOS, iOS, iOS Simulator, watchOS, watchOS Simulator, tvOS, tvOS Simulator, visionOS, visionOS Simulator
preferXcodebuildbooleanIf true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails.
projectPathstringPath to the .xcodeproj file
schemestringOptional: The scheme to clean
workspacePathstringPath to the .xcworkspace file

discover_projs

Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files.

ParameterTypeDescription
workspaceRoot *stringThe absolute path of the workspace root to scan within.
maxDepthintegerOptional: Maximum directory depth to scan. Defaults to 5.
scanPathstringOptional: Path relative to workspace root to scan. Defaults to workspace root.

get_app_bundle_id

Extracts the bundle identifier from an app bundle (.app) for any Apple platform (iOS, iPadOS, watchOS, tvOS, visionOS). IMPORTANT: You MUST provide the appPath parameter. Example: get_app_bundle_id({ appPath: '/path/to/your/app.app' })

ParameterTypeDescription
appPath *stringPath to the .app bundle to extract bundle ID from (full path to the .app directory)

get_device_app_path

Gets the app bundle path for a physical device application (iOS, watchOS, tvOS, visionOS) using either a project or workspace. Provide exactly one of projectPath or workspacePath. Example: get_device_app_path({ projectPath: '/path/to/project.xcodeproj', scheme: 'MyScheme' })

ParameterTypeDescription
scheme *stringThe scheme to use
configurationstringBuild configuration (Debug, Release, etc.)
platformstringTarget platform (defaults to iOS)
projectPathstringPath to the .xcodeproj file
workspacePathstringPath to the .xcworkspace file

install_app_device

Installs an app on a physical Apple device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro). Requires deviceId and appPath.

ParameterTypeDescription
appPath *stringPath to the .app bundle to install (full path to the .app directory)
deviceId *stringUDID of the device (obtained from list_devices)

launch_app_device

Launches an app on a physical Apple device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro). Requires deviceId and bundleId.

ParameterTypeDescription
bundleId *stringBundle identifier of the app to launch (e.g., "com.example.MyApp")
deviceId *stringUDID of the device (obtained from list_devices)

list_devices

Lists connected physical Apple devices (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) with their UUIDs, names, and connection status. Use this to discover physical devices for testing.

list_schemes

Lists available schemes for either a project or a workspace. Provide exactly one of projectPath or workspacePath. Example: list_schemes({ projectPath: '/path/to/MyProject.xcodeproj' })

ParameterTypeDescription
projectPathstringPath to the .xcodeproj file
workspacePathstringPath to the .xcworkspace file

show_build_settings

Shows build settings from either a project or workspace using xcodebuild. Provide exactly one of projectPath or workspacePath, plus scheme. Example: show_build_settings({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })

ParameterTypeDescription
scheme *stringScheme name to show build settings for (Required)
projectPathstringPath to the .xcodeproj file
workspacePathstringPath to the .xcworkspace file

start_device_log_cap

Starts capturing logs from a specified Apple device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) by launching the app with console output. Returns a session ID.

ParameterTypeDescription
bundleId *stringBundle identifier of the app to launch and capture logs for.
deviceId *stringUDID of the device (obtained from list_devices)

stop_app_device

Stops an app running on a physical Apple device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro). Requires deviceId and processId.

ParameterTypeDescription
deviceId *stringUDID of the device (obtained from list_devices)
processId *numberProcess ID (PID) of the app to stop

stop_device_log_cap

Stops an active Apple device log capture session and returns the captured logs.

ParameterTypeDescription
logSessionId *stringThe session ID returned by start_device_log_cap.

test_device

Runs tests for an Apple project or workspace on a physical device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) using xcodebuild test and parses xcresult output. Provide exactly one of projectPath or workspacePath. IMPORTANT: Requires scheme and deviceId. Example: test_device({ projectPath: "/path/to/MyProject.xcodeproj", scheme: "MyScheme", deviceId: "device-uuid" })

ParameterTypeDescription
deviceId *stringUDID of the device (obtained from list_devices)
scheme *stringThe scheme to test
configurationstringBuild configuration (Debug, Release)
derivedDataPathstringPath to derived data directory
extraArgsarrayAdditional arguments to pass to xcodebuild
platformstringTarget platform (defaults to iOS)
preferXcodebuildbooleanPrefer xcodebuild over faster alternatives
projectPathstringPath to the .xcodeproj file
testRunnerEnvobjectEnvironment variables to pass to the test runner (TEST_RUNNER_ prefix added automatically)
workspacePathstringPath to the .xcworkspace file

doctor

Provides comprehensive information about the MCP server environment, available dependencies, and configuration status.

ParameterTypeDescription
enabledbooleanOptional: dummy parameter to satisfy MCP protocol

start_sim_log_cap

Starts capturing logs from a specified simulator. Returns a session ID. By default, captures only structured logs.

ParameterTypeDescription
bundleId *stringBundle identifier of the app to capture logs for.
simulatorUuid *stringUUID of the simulator to capture logs from (obtained from list_simulators).
captureConsolebooleanWhether to capture console output (requires app relaunch).

stop_sim_log_cap

Stops an active simulator log capture session and returns the captured logs.

ParameterTypeDescription
logSessionId *stringThe session ID returned by start_sim_log_cap.

build_macos

Builds a macOS app using xcodebuild from a project or workspace. Provide exactly one of projectPath or workspacePath. Example: build_macos({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })

ParameterTypeDescription
scheme *stringThe scheme to use
archstringArchitecture to build for (arm64 or x86_64). For macOS only.
configurationstringBuild configuration (Debug, Release, etc.)
derivedDataPathstringPath where build products and other derived data will go
extraArgsarrayAdditional xcodebuild arguments
preferXcodebuildbooleanIf true, prefers xcodebuild over the experimental incremental build system
projectPathstringPath to the .xcodeproj file
workspacePathstringPath to the .xcworkspace file

build_run_macos

Builds and runs a macOS app from a project or workspace in one step. Provide exactly one of projectPath or workspacePath. Example: build_run_macos({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })

ParameterTypeDescription
scheme *stringThe scheme to use
archstringArchitecture to build for (arm64 or x86_64). For macOS only.
configurationstringBuild configuration (Debug, Release, etc.)
derivedDataPathstringPath where build products and other derived data will go
extraArgsarrayAdditional xcodebuild arguments
preferXcodebuildbooleanIf true, prefers xcodebuild over the experimental incremental build system
projectPathstringPath to the .xcodeproj file
workspacePathstringPath to the .xcworkspace file

get_mac_app_path

Gets the app bundle path for a macOS application using either a project or workspace. Provide exactly one of projectPath or workspacePath. Example: get_mac_app_path({ projectPath: '/path/to/project.xcodeproj', scheme: 'MyScheme' })

ParameterTypeDescription
scheme *stringThe scheme to use
archstringArchitecture to build for (arm64 or x86_64). For macOS only.
configurationstringBuild configuration (Debug, Release, etc.)
derivedDataPathstringPath to derived data directory
extraArgsarrayAdditional arguments to pass to xcodebuild
projectPathstringPath to the .xcodeproj file
workspacePathstringPath to the .xcworkspace file

get_mac_bundle_id

Extracts the bundle identifier from a macOS app bundle (.app). IMPORTANT: You MUST provide the appPath parameter. Example: get_mac_bundle_id({ appPath: '/path/to/your/app.app' }) Note: In some environments, this tool may be prefixed as mcp0_get_macos_bundle_id.

ParameterTypeDescription
appPath *stringPath to the macOS .app bundle to extract bundle ID from (full path to the .app directory)

launch_mac_app

Launches a macOS application. IMPORTANT: You MUST provide the appPath parameter. Example: launch_mac_app({ appPath: '/path/to/your/app.app' }) Note: In some environments, this tool may be prefixed as mcp0_launch_macos_app.

ParameterTypeDescription
appPath *stringPath to the macOS .app bundle to launch (full path to the .app directory)
argsarrayAdditional arguments to pass to the app

stop_mac_app

Stops a running macOS application. Can stop by app name or process ID.

ParameterTypeDescription
appNamestringName of the application to stop (e.g., "Calculator" or "MyApp")
processIdnumberProcess ID (PID) of the application to stop

test_macos

Runs tests for a macOS project or workspace using xcodebuild test and parses xcresult output. Provide exactly one of projectPath or workspacePath. IMPORTANT: Requires scheme. Example: test_macos({ projectPath: "/path/to/MyProject.xcodeproj", scheme: "MyScheme" })

ParameterTypeDescription
scheme *stringThe scheme to use
configurationstringBuild configuration (Debug, Release, etc.)
derivedDataPathstringPath where build products and other derived data will go
extraArgsarrayAdditional xcodebuild arguments
preferXcodebuildbooleanIf true, prefers xcodebuild over the experimental incremental build system
projectPathstringPath to the .xcodeproj file
testRunnerEnvobjectEnvironment variables to pass to the test runner (TEST_RUNNER_ prefix added automatically)
workspacePathstringPath to the .xcworkspace file

scaffold_ios_project

Scaffold a new iOS project from templates. Creates a modern Xcode project with workspace structure, SPM package for features, and proper iOS configuration.

ParameterTypeDescription
outputPath *stringPath where the project should be created
projectName *stringName of the new project
bundleIdentifierstringBundle identifier (e.g., com.example.myapp). If not provided, will use com.example.projectname
currentProjectVersionstringBuild number (e.g., 1, 42, 100). If not provided, will use 1
customizeNamesbooleanWhether to customize project names and identifiers. Default is true.
deploymentTargetstringiOS deployment target (e.g., 18.4, 17.0). If not provided, will use 18.4
displayNamestringApp display name (shown on home screen/dock). If not provided, will use projectName
marketingVersionstringMarketing version (e.g., 1.0, 2.1.3). If not provided, will use 1.0
supportedOrientationsarraySupported orientations for iPhone
supportedOrientationsIpadarraySupported orientations for iPad
targetedDeviceFamilyarrayTargeted device families

scaffold_macos_project

Scaffold a new macOS project from templates. Creates a modern Xcode project with workspace structure, SPM package for features, and proper macOS configuration.

ParameterTypeDescription
outputPath *stringPath where the project should be created
projectName *stringName of the new project
bundleIdentifierstringBundle identifier (e.g., com.example.myapp). If not provided, will use com.example.projectname
currentProjectVersionstringBuild number (e.g., 1, 42, 100). If not provided, will use 1
customizeNamesbooleanWhether to customize project names and identifiers. Default is true.
deploymentTargetstringmacOS deployment target (e.g., 15.4, 14.0). If not provided, will use 15.4
displayNamestringApp display name (shown on home screen/dock). If not provided, will use projectName
marketingVersionstringMarketing version (e.g., 1.0, 2.1.3). If not provided, will use 1.0

boot_sim

Boots an iOS simulator. After booting, use open_sim() to make the simulator visible. IMPORTANT: You MUST provide the simulatorUuid parameter. Example: boot_sim({ simulatorUuid: 'YOUR_UUID_HERE' })

ParameterTypeDescription
simulatorUuid *stringUUID of the simulator to use (obtained from list_simulators)

build_run_sim

Builds and runs an app from a project or workspace on a specific simulator by UUID or name. Provide exactly one of projectPath or workspacePath, and exactly one of simulatorId or simulatorName. IMPORTANT: Requires either projectPath or workspacePath, plus scheme and either simulatorId or simulatorName. Example: build_run_sim({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme', simulatorName: 'iPhone 16' })

ParameterTypeDescription
scheme *stringThe scheme to use (Required)
configurationstringBuild configuration (Debug, Release, etc.)
derivedDataPathstringPath where build products and other derived data will go
extraArgsarrayAdditional xcodebuild arguments
preferXcodebuildbooleanIf true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails.
projectPathstringPath to .xcodeproj file. Provide EITHER this OR workspacePath, not both
simulatorIdstringUUID of the simulator (from list_sims). Provide EITHER this OR simulatorName, not both
simulatorNamestringName of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorId, not both
useLatestOSbooleanWhether to use the latest OS version for the named simulator
workspacePathstringPath to .xcworkspace file. Provide EITHER this OR projectPath, not both

build_sim

Builds an app from a project or workspace for a specific simulator by UUID or name. Provide exactly one of projectPath or workspacePath, and exactly one of simulatorId or simulatorName. IMPORTANT: Requires either projectPath or workspacePath, plus scheme and either simulatorId or simulatorName. Example: build_sim({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme', simulatorName: 'iPhone 16' })

ParameterTypeDescription
scheme *stringThe scheme to use (Required)
configurationstringBuild configuration (Debug, Release, etc.)
derivedDataPathstringPath where build products and other derived data will go
extraArgsarrayAdditional xcodebuild arguments
preferXcodebuildbooleanIf true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails.
projectPathstringPath to .xcodeproj file. Provide EITHER this OR workspacePath, not both
simulatorIdstringUUID of the simulator (from list_sims). Provide EITHER this OR simulatorName, not both
simulatorNamestringName of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorId, not both
useLatestOSbooleanWhether to use the latest OS version for the named simulator
workspacePathstringPath to .xcworkspace file. Provide EITHER this OR projectPath, not both

describe_ui

Gets entire view hierarchy with precise frame coordinates (x, y, width, height) for all visible elements. Use this before UI interactions or after layout changes - do NOT guess coordinates from screenshots. Returns JSON tree with frame data for accurate automation.

ParameterTypeDescription
simulatorUuid *string

get_sim_app_path

Gets the app bundle path for a simulator by UUID or name using either a project or workspace file. IMPORTANT: Requires either projectPath OR workspacePath (not both), plus scheme, platform, and either simulatorId OR simulatorName (not both). Example: get_sim_app_path({ projectPath: '/path/to/project.xcodeproj', scheme: 'MyScheme', platform: 'iOS Simulator', simulatorName: 'iPhone 16' })

ParameterTypeDescription
platform *stringTarget simulator platform (Required)
scheme *stringThe scheme to use (Required)
archstringOptional architecture
configurationstringBuild configuration (Debug, Release, etc.)
projectPathstringPath to .xcodeproj file. Provide EITHER this OR workspacePath, not both
simulatorIdstringUUID of the simulator (from list_sims). Provide EITHER this OR simulatorName, not both
simulatorNamestringName of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorId, not both
useLatestOSbooleanWhether to use the latest OS version for the named simulator
workspacePathstringPath to .xcworkspace file. Provide EITHER this OR projectPath, not both

install_app_sim

Installs an app in an iOS simulator. IMPORTANT: You MUST provide both the simulatorUuid and appPath parameters. Example: install_app_sim({ simulatorUuid: 'YOUR_UUID_HERE', appPath: '/path/to/your/app.app' })

ParameterTypeDescription
appPath *stringPath to the .app bundle to install (full path to the .app directory)
simulatorUuid *stringUUID of the simulator to use (obtained from list_simulators)

launch_app_logs_sim

Launches an app in an iOS simulator and captures its logs.

ParameterTypeDescription
bundleId *stringBundle identifier of the app to launch (e.g., 'com.example.MyApp')
simulatorUuid *stringUUID of the simulator to use (obtained from list_simulators)
argsarrayAdditional arguments to pass to the app

launch_app_sim

Launches an app in an iOS simulator by UUID or name. If simulator window isn't visible, use open_sim() first. IMPORTANT: Provide either simulatorUuid OR simulatorName, plus bundleId. Note: You must install the app in the simulator before launching. The typical workflow is: build → install → launch. Example: launch_app_sim({ simulatorUuid: 'YOUR_UUID_HERE', bundleId: 'com.example.MyApp' }) or launch_app_sim({ simulatorName: 'iPhone 16', bundleId: 'com.example.MyApp' })

ParameterTypeDescription
bundleId *stringBundle identifier of the app to launch (e.g., 'com.example.MyApp')
argsarrayAdditional arguments to pass to the app
simulatorNamestringName of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorUuid, not both
simulatorUuidstringUUID of the simulator to use (obtained from list_simulators). Provide EITHER this OR simulatorName, not both

list_sims

Lists available iOS simulators with their UUIDs.

ParameterTypeDescription
enabledbooleanOptional flag to enable the listing operation.

open_sim

Opens the iOS Simulator app.

screenshot

Captures screenshot for visual verification. For UI coordinates, use describe_ui instead (don't determine coordinates from screenshots).

ParameterTypeDescription
simulatorUuid *string

stop_app_sim

Stops an app running in an iOS simulator by UUID or name. IMPORTANT: Provide either simulatorUuid OR simulatorName, plus bundleId. Example: stop_app_sim({ simulatorUuid: "UUID", bundleId: "com.example.MyApp" }) or stop_app_sim({ simulatorName: "iPhone 16", bundleId: "com.example.MyApp" })

ParameterTypeDescription
bundleId *stringBundle identifier of the app to stop (e.g., 'com.example.MyApp')
simulatorNamestringName of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorUuid, not both
simulatorUuidstringUUID of the simulator (obtained from list_simulators). Provide EITHER this OR simulatorName, not both

test_sim

Runs tests on a simulator by UUID or name using xcodebuild test and parses xcresult output. Works with both Xcode projects (.xcodeproj) and workspaces (.xcworkspace). IMPORTANT: Requires either projectPath or workspacePath, plus scheme and either simulatorId or simulatorName. Example: test_sim({ projectPath: "/path/to/MyProject.xcodeproj", scheme: "MyScheme", simulatorName: "iPhone 16" })

ParameterTypeDescription
scheme *stringThe scheme to use (Required)
configurationstringBuild configuration (Debug, Release, etc.)
derivedDataPathstringPath where build products and other derived data will go
extraArgsarrayAdditional xcodebuild arguments
preferXcodebuildbooleanIf true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails.
projectPathstringPath to .xcodeproj file. Provide EITHER this OR workspacePath, not both
simulatorIdstringUUID of the simulator (from list_sims). Provide EITHER this OR simulatorName, not both
simulatorNamestringName of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorId, not both
testRunnerEnvobjectEnvironment variables to pass to the test runner (TEST_RUNNER_ prefix added automatically)
useLatestOSbooleanWhether to use the latest OS version for the named simulator
workspacePathstringPath to .xcworkspace file. Provide EITHER this OR projectPath, not both

reset_sim_location

Resets the simulator's location to default.

ParameterTypeDescription
simulatorUuid *stringUUID of the simulator to use (obtained from list_simulators)

set_sim_appearance

Sets the appearance mode (dark/light) of an iOS simulator.

ParameterTypeDescription
mode *stringThe appearance mode to set (either "dark" or "light")
simulatorUuid *stringUUID of the simulator to use (obtained from list_simulators)

set_sim_location

Sets a custom GPS location for the simulator.

ParameterTypeDescription
latitude *numberThe latitude for the custom location.
longitude *numberThe longitude for the custom location.
simulatorUuid *stringUUID of the simulator to use (obtained from list_simulators)

sim_statusbar

Sets the data network indicator in the iOS simulator status bar. Use "clear" to reset all overrides, or specify a network type (hide, wifi, 3g, 4g, lte, lte-a, lte+, 5g, 5g+, 5g-uwb, 5g-uc).

ParameterTypeDescription
dataNetwork *stringData network type to display in status bar. Use "clear" to reset all overrides. Valid values: clear, hide, wifi, 3g, 4g, lte, lte-a, lte+, 5g, 5g+, 5g-uwb, 5g-uc.
simulatorUuid *stringUUID of the simulator to use (obtained from list_simulators)

swift_package_build

Builds a Swift Package with swift build

ParameterTypeDescription
packagePath *stringPath to the Swift package root (Required)
architecturesarrayTarget architectures to build for
configurationstringSwift package configuration (debug, release)
parseAsLibrarybooleanBuild as library instead of executable
targetNamestringOptional target to build

swift_package_clean

Cleans Swift Package build artifacts and derived data

ParameterTypeDescription
packagePath *stringPath to the Swift package root (Required)

swift_package_list

Lists currently running Swift Package processes

swift_package_run

Runs an executable target from a Swift Package with swift run

ParameterTypeDescription
packagePath *stringPath to the Swift package root (Required)
argumentsarrayArguments to pass to the executable
backgroundbooleanRun in background and return immediately (default: false)
configurationstringBuild configuration: 'debug' (default) or 'release'
executableNamestringName of executable to run (defaults to package name)
parseAsLibrarybooleanAdd -parse-as-library flag for @main support (default: false)
timeoutnumberTimeout in seconds (default: 30, max: 300)

swift_package_stop

Stops a running Swift Package executable started with swift_package_run

ParameterTypeDescription
pid *numberProcess ID (PID) of the running executable

swift_package_test

Runs tests for a Swift Package with swift test

ParameterTypeDescription
packagePath *stringPath to the Swift package root (Required)
configurationstringSwift package configuration (debug, release)
filterstringFilter tests by name (regex pattern)
parallelbooleanRun tests in parallel (default: true)
parseAsLibrarybooleanAdd -parse-as-library flag for @main support (default: false)
showCodecovbooleanShow code coverage (default: false)
testProductstringOptional specific test product to run

button

Press hardware button on iOS simulator. Supported buttons: apple-pay, home, lock, side-button, siri

ParameterTypeDescription
buttonType *string
simulatorUuid *string
durationnumber

gesture

Perform gesture on iOS simulator using preset gestures: scroll-up, scroll-down, scroll-left, scroll-right, swipe-from-left-edge, swipe-from-right-edge, swipe-from-top-edge, swipe-from-bottom-edge

ParameterTypeDescription
preset *stringThe gesture preset to perform. Must be one of: scroll-up, scroll-down, scroll-left, scroll-right, swipe-from-left-edge, swipe-from-right-edge, swipe-from-top-edge, swipe-from-bottom-edge.
simulatorUuid *string
deltanumberOptional: Distance to move in pixels.
durationnumberOptional: Duration of the gesture in seconds.
postDelaynumberOptional: Delay after completing the gesture in seconds.
preDelaynumberOptional: Delay before starting the gesture in seconds.
screenHeightintegerOptional: Screen height in pixels. Used for gesture calculations. Auto-detected if not provided.
screenWidthintegerOptional: Screen width in pixels. Used for gesture calculations. Auto-detected if not provided.

key_press

Press a single key by keycode on the simulator. Common keycodes: 40=Return, 42=Backspace, 43=Tab, 44=Space, 58-67=F1-F10.

ParameterTypeDescription
keyCode *integer
simulatorUuid *string
durationnumber

key_sequence

Press key sequence using HID keycodes on iOS simulator with configurable delay

ParameterTypeDescription
keyCodes *array
simulatorUuid *string
delaynumber

long_press

Long press at specific coordinates for given duration (ms). Use describe_ui for precise coordinates (don't guess from screenshots).

ParameterTypeDescription
duration *number
simulatorUuid *string
x *integer
y *integer

swipe

Swipe from one point to another. Use describe_ui for precise coordinates (don't guess from screenshots). Supports configurable timing.

ParameterTypeDescription
simulatorUuid *string
x1 *integer
x2 *integer
y1 *integer
y2 *integer
deltanumber
durationnumber
postDelaynumber
preDelaynumber

tap

Tap at specific coordinates. Use describe_ui to get precise element coordinates (don't guess from screenshots). Supports optional timing delays.

ParameterTypeDescription
simulatorUuid *string
x *integer
y *integer
postDelaynumber
preDelaynumber

touch

Perform touch down/up events at specific coordinates. Use describe_ui for precise coordinates (don't guess from screenshots).

ParameterTypeDescription
simulatorUuid *string
x *integer
y *integer
delaynumber
downboolean
upboolean

type_text

Type text (supports US keyboard characters). Use describe_ui to find text field, tap to focus, then type.

ParameterTypeDescription
simulatorUuid *string
text *string