Chrome Debug MCP Server

by robertheadley
Verified

set_viewport

Adjust the viewport dimensions and properties, such as width, height, device scale factor, and mobile emulation, to simulate different screen sizes and device behaviors in Chrome for testing or debugging.

Instructions

Set the viewport size and properties

Input Schema

NameRequiredDescriptionDefault
deviceScaleFactorNoDevice scale factor
heightYesViewport height in pixels
isMobileNoWhether to emulate mobile device
widthYesViewport width in pixels

Input Schema (JSON Schema)

{ "properties": { "deviceScaleFactor": { "description": "Device scale factor", "type": "number" }, "height": { "description": "Viewport height in pixels", "type": "number" }, "isMobile": { "description": "Whether to emulate mobile device", "type": "boolean" }, "width": { "description": "Viewport width in pixels", "type": "number" } }, "required": [ "width", "height" ], "type": "object" }

You must be authenticated.

Other Tools from Chrome Debug MCP Server

Related Tools

ID: nguhnsghor