browser_mock_geolocation
Set a fixed geolocation (latitude, longitude, accuracy) to bypass permission prompts on the current page. Use clear=true to restore native behavior; the override resets after navigation.
Instructions
Make navigator.geolocation return a fixed position (so location-gated tasks proceed without the native permission prompt). Pass clear=true to stop mocking. Applies to the current page; re-set after navigation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_mock_geolocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Stop mocking and restore real geolocation. | |
| accuracy | No | Accuracy in meters (default 20). | |
| latitude | No | ||
| longitude | No |