set_mock_location
Set a mock GPS location on Android devices with latitude and longitude. Works directly on emulators; physical devices require a Mock Location App in Developer Options.
Instructions
Set a mock GPS location (latitude and longitude) on the device. For emulators, this works directly. For physical devices, you must configure a Mock Location App in Developer Options first.
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_mock_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Specific device serial number | |
| latitude | Yes | Latitude coordinate (e.g., 37.7749) | |
| longitude | Yes | Longitude coordinate (e.g., -122.4194) |