Screenshot operation resets Device simulation mode (Mobile view) back to standard mode
Describe the bug Screenshot operation resets Device simulation mode (Mobile view) back to Desktop. This is a blocker for mobile workflows, as you have to manually set Device simulation back to Mobile after each prompt that involves screenshots.
To Reproduce Steps to reproduce the behavior:
- Open page, toggle Device simulation mode, select any dimension preset (e.g. Iphone 14 Pro Max)
- Run a prompt that involves taking a snapshot
Expected behavior Selected device mode stays (Iphone 14 Pro Max in this example)
Actual behavior Page layout is reset to regular Desktop mode (Even though device mode still shows Iphone 14 Pro Max)
Chrome version: Chrome: 141.0.7390.54 (Official Build) (arm64) chrome-devtools-mcp: 0.5.1
Coding agent version: Model version: Cursor auto-model
You can instead let the LLM change the device emulation mode for you (which will stick), but you're right it'd be great if the MCP server does not change any existing emulation modes. @OrKoN would that be possible?
We currently do not support device emulation via the MCP server. I think it would work better once the emulation is done via the same CDP session (i.e., via the MCP server). There could be other workaround but basically the issue is on the Chrome/CDP side.