prepare_ios_simulator
Boot an iOS/tvOS simulator, download and install WebDriverAgent (WDA) on a free port, and return the WDA URL to reuse for Appium sessions. Optionally skip WDA or force refresh.
Instructions
Prepare an iOS/tvOS simulator for Appium testing in a single call. Automatically boots the simulator, downloads prebuilt WDA (if not cached), and installs/launches WDA on a free per-simulator port (so multiple simulators can run in parallel without colliding on the default 8100). Pass the returned capabilitiesHint (appium:webDriverAgentUrl) to appium_session_management (action=create) so the session reuses this running WDA instead of trying to start its own. Use skipWda=true to only boot without WDA. Set APPIUM_MCP_WDA_APP_PATH to an absolute path to a pre-extracted WebDriverAgentRunner-Runner.app to skip download entirely (useful in environments where external downloads are blocked).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | The UDID of the iOS simulator to prepare. Use select_device to get this. | |
| skipWda | No | If true, only boot the simulator without downloading or installing WDA. Default: false. | |
| platform | No | The simulator platform to download WDA for. Default is "ios". Use "tvos" for Apple TV simulators. | ios |
| forceRefreshWda | No | If true, re-download WDA even if already cached. Default: false. |