iphone_select_device
Switch control to another connected iPhone or iPad by UDID or device name so subsequent tools target that device; use auto to return to automatic selection.
Instructions
改为控制另一台设备,之后所有工具都作用在它上面,守护进程重启后还记得。device 是 UDID 或设备名(设备名包含这段文字且只有一台也行),auto 表示取消选定、改回自动选(正在控制的那台断开才换)。
何时用:接着多台设备、要操作的不是正在控制的那台。先用 iphone_list_devices 看有哪几台。
行为:切换后要在新设备上拉起 WDA(10~60 秒),期间读界面、按名字点击等用不了,先用 iphone_status 确认就绪;这台从没装过 WDA 时起不来,要请用户运行 iphone-control setup。自动解锁按设备分开存密码,新设备没设就不会自动解锁。设了 IPHONE_UDID 时不能切换。
返回:一行结果文字,例如「已切换到 Derrors 的 iPad(iPad11,1 iOS 26.6.1,00008020-…)」。
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": {
"device": "<device>"
},
"name": "iphone_select_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | UDID、设备名,或 auto(改回自动选) |