setActiveDevice
Select a mobile device to target for automation tasks by specifying its ID and platform (Android or iOS).
Instructions
Set the active device ID for subsequent operations
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": {
"deviceId": "<deviceId>",
"platform": "<platform>"
},
"name": "setActiveDevice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceId | Yes | The device ID to set as active | |
| platform | Yes | Target platform |