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.
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 |