Of the 1 Device methods, browser sessions serve 1, phone sessions 1 and computer sessions 1. A method marked not served answers StrategyUnavailable on that kind of session; check the handshake’s capabilities before relying on one.

Device.info

Browser: served Phone: served Computer: served Static device descriptor for sizing input without a screenshot round trip.
{"id": 1, "method": "Device.info", "params": {}}
No params. Result
FieldTypeDescription
deviceIdstring
platformstringOS family of the session.
formFactorstringPhysical class of the session.
inputModalitiesstring[]Interaction classes the session accepts, e.g. [“keyboard”, “pointer”]. A client sizes behavior from this, not from platform.
modelstringBest-effort; empty when the descriptor lookup has not succeeded.
osVersionstringBest-effort; empty when unknown.
screenWidthintegerWidth of the live-view frame: the space screenshots, Screen.observe boxes and window-pixel coordinates use. In a browser session that is Chrome’s window.
screenHeightintegerHeight of the live-view frame. screenWidth by screenHeight and frame are the same numbers.
viewportSizeThe page’s viewport in CSS pixels, as measured; a request can be clamped. Browser sessions only.
devicePixelRationumberDevice pixels per CSS pixel, fixed for the session. Browser sessions only.
windowBboxChrome’s visible window on the monitor, exactly what the live view shows (not the OS window bounds, which include invisible resize borders), in monitor pixels. Browser sessions only.
frameSizeThe live-view frame’s size: the size of window, and the same numbers as screenWidth by screenHeight. Browser sessions only.
monitorSizeThe display Chrome runs on, in pixels; pages see it as screen.width and screen.height. Browser sessions only.