iphone_select_device
Switch the server to a different connected iPhone by UDID so subsequent device commands target that phone. Use when multiple iPhones are connected; stop WebDriverAgent on the current phone first.
Instructions
Switch this server to another iPhone; every following iphone_* call acts on that one.
Use it when several iPhones are connected and the user names another one. The iPhone must have been set
up with `iphone-mcp setup`. Not allowed when an admin pinned the server to one iPhone (IPHONE_MCP_UDID) or
while this server still runs WebDriverAgent on the current iPhone – call iphone_stop_agent first. After
switching, call iphone_start_agent if the new iPhone has no agent running.Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"udid": "<udid>"
},
"name": "iphone_select_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | UDID of the iPhone to control, as shown by iphone_list_devices. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |