set_device
Change what the simulated phone has: location, the address book (contacts), calendar events, files for the file picker, a barcode in front of the camera, permission states, whether the fingerprint will match, whether a payment will be approved, network on/off. Takes effect for the next action.
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": {
"session": "<session>"
},
"name": "set_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dnd | No | Do Not Disturb: notifications go to the shade without a banner | |
| wifi | No | ||
| files | No | Replace the files the file picker offers | |
| camera | No | ||
| online | No | ||
| source | No | "simulated" forces the simulated camera, microphone and location even when a person could grant the real ones, for reproducible runs | |
| payment | No | ||
| session | Yes | Session from open_app | |
| airplane | No | ||
| calendar | No | Replace the calendar events the app can read (needs calendar permission) | |
| contacts | No | Replace the address book the app can read (needs contacts permission) | |
| darkMode | No | The app's colour scheme (prefers-color-scheme) | |
| location | No | ||
| autoRotate | No | ||
| biometrics | No | ||
| brightness | No | ||
| flashlight | No | ||
| microphone | No | ||
| mobileData | No | ||
| permissions | No | ||
| orientationLock | No | ||
| locationServices | No |