Set Browser Geolocation
browser_set_geolocationOverride browser geolocation to specified latitude, longitude, and accuracy for testing location-dependent features. Requires explicit location access acknowledgment.
Instructions
Use when a full-profile authorized test explicitly depends on a controlled latitude, longitude, and accuracy. Preconditions: acknowledgeLocationAccess: true is required and only intended coordinates may be supplied. Next: reload or exercise the location-dependent behavior. Sensitivity: the coordinates are exposed to authorized pages that have geolocation permission.
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": "browser_set_geolocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accuracy | No | ||
| latitude | Yes | ||
| longitude | Yes | ||
| acknowledgeLocationAccess | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |