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

Display.getModes

Browser: not served Phone: not served Computer: served The desktop’s resolution and every mode Display.setSize can switch to, in screen pixels. Computer sessions only.
{"id": 1, "method": "Display.getModes", "params": {}}
ParamTypeRequiredDescription
idempotencyKeystringNoMakes a re-send after a reconnect safe: a repeated key returns the recorded response without acting again. See Idempotency keys.
Result
FieldTypeDescription
currentDisplayMode
modesDisplayMode[]

Display.setSize

Browser: not served Phone: not served Computer: served Switch the desktop to one of its modes. The live view and recording follow the new size; a live view pauses for 1 to 3 seconds while its stream restarts. A size that isn’t a mode fails with InvalidArgs listing the modes. Computer sessions only.
{"id": 1, "method": "Display.setSize", "params": {"width": 1280, "height": 800}}
ParamTypeRequiredDescription
widthintegerYes
heightintegerYes
idempotencyKeystringNoMakes a re-send after a reconnect safe: a repeated key returns the recorded response without acting again. See Idempotency keys.
Result
FieldTypeDescription
currentDisplayMode
modesDisplayMode[]