Set location
set_locationSets mock GPS coordinates on an Android device or emulator via adb for testing location-gated features.
Instructions
Set the emulator's mock GPS location (longitude, latitude) — for location-gated features.
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": {
"longitude": "<longitude>",
"latitude": "<latitude>"
},
"name": "set_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Target device serial (adb -s). Optional when exactly one device is attached. | |
| latitude | Yes | Latitude of the mock GPS fix. | |
| longitude | Yes | Longitude of the mock GPS fix. |