Set emulator location
set_emulator_locationAssign latitude and longitude to a running Android emulator to simulate GPS location for testing location-based app behavior.
Instructions
Set the GPS location of a running emulator.
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": {
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "set_emulator_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Emulator serial (defaults to session or the only device) | |
| latitude | Yes | Latitude in decimal degrees | |
| longitude | Yes | Longitude in decimal degrees |