chrome-devtools-mcp icon indicating copy to clipboard operation
chrome-devtools-mcp copied to clipboard

Screenshot operation resets Device simulation mode (Mobile view) back to standard mode

Open bubenshchykov opened this issue 2 months ago • 2 comments

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:

  1. Open page, toggle Device simulation mode, select any dimension preset (e.g. Iphone 14 Pro Max)
  2. 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

bubenshchykov avatar Oct 04 '25 23:10 bubenshchykov

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?

sebastianbenz avatar Oct 06 '25 09:10 sebastianbenz

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.

OrKoN avatar Oct 07 '25 06:10 OrKoN