豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

feat(emulation): add geolocation emulation tool#634

Merged
OrKoN merged 5 commits intoChromeDevTools:mainfrom
JustasMonkev:feat/emulate-geolocation
Dec 2, 2025
Merged

feat(emulation): add geolocation emulation tool#634
OrKoN merged 5 commits intoChromeDevTools:mainfrom
JustasMonkev:feat/emulate-geolocation

Conversation

@JustasMonkev
Copy link
Copy Markdown
Contributor

Adding emulate_geolocation tool to emulate device location for testing location-based features. Supports setting latitude/longitude or clearing the override.

Closing #296

@google-cla
Copy link
Copy Markdown

google-cla bot commented Nov 28, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Copy Markdown
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Please integrate the geolocation functionality into the emulate tool instead of a new tool to keep the number of tools managable.

@JustasMonkev
Copy link
Copy Markdown
Contributor Author

please check again @OrKoN

@JustasMonkev JustasMonkev requested a review from OrKoN November 30, 2025 20:16
Comment thread src/tools/emulation.ts Outdated
@JustasMonkev JustasMonkev requested a review from OrKoN December 1, 2025 15:40
Copy link
Copy Markdown
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@OrKoN OrKoN merged commit 3991e4c into ChromeDevTools:main Dec 2, 2025
17 checks passed
OrKoN pushed a commit that referenced this pull request Dec 3, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.11.0](chrome-devtools-mcp-v0.10.2...chrome-devtools-mcp-v0.11.0)
(2025-12-03)


### 🎉 Features

* **emulation:** add geolocation emulation tool
([#634](#634))
([3991e4c](3991e4c))
* integrate DevTools issues into the console tools
([#636](#636))
([d892145](d892145))
* support --user-data-dir
([#622](#622))
([fcaf553](fcaf553))


### 🛠️ Fixes

* handle error messages that are not instanceof Error
([#618](#618))
([a67528a](a67528a))
* handle the case when all pages are filtered out
([#616](#616))
([bff5c65](bff5c65))
* ignore hash parts of URLs when finding DevTools
([#608](#608))
([52533d0](52533d0))
* ignore quality for png
([#589](#589))
([2eaf268](2eaf268))
* include a note about selected elements missing from the snapshot
([#593](#593))
([80e77fd](80e77fd))
* prevent dropping license notices on some files when publishing
([#604](#604))
([94752ff](94752ff))
* rename page content to latest page snapshot
([#579](#579))
([9cb99ad](9cb99ad))
* **wait_for:** respect the provided timeout
([#630](#630))
([6b0984a](6b0984a)),
closes
[#624](#624)


### 📄 Documentation

* add Antigravity config
([#580](#580))
([6f9182f](6f9182f))
* add Qoder CLI to the MCP client configuration section in the README.
([#552](#552))
([1a16f15](1a16f15))
* add VS Code install badges
([#532](#532))
([cc4d065](cc4d065))
* clarify browser-url parameter in README
([#613](#613))
([05cf8cb](05cf8cb))
* Fix Antigravity docs
([#605](#605))
([fae2608](fae2608))
* update readme to explain agy's browser integration
([#612](#612))
([2d89865](2d89865))


### ♻️ Chores

* avoid throwing in resolveCdpElementId
([#606](#606))
([eb261fd](eb261fd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants