Dea DardanicaDocumentation
Devices and viewportsRead Markdown

set_device

Switch the ACTIVE TAB's emulated device and reload its page. Per tab: other tabs and future tabs are untouched. A fixed preset emulates the real device (its viewport, DPR, touch, and user agent, so sites serve their real mobile experience); 'responsive' returns the tab to following the window.

Example#

Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.

json
{
  "device_id": "iphone-15"
}

Usage notes#

Discover IDs with list_devices. Emulation uses Chromium; it does not run the iOS WebKit engine.

Result#

Applies the chosen preset to the selected tab, reloads the page, and returns the updated state.

Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.

Parameters#

set_device — table 1
ParameterTypeRequiredDescription
device_idstringYesPreset id from list_devices: responsive | iphone-15 | iphone-pro-max | pixel-8 | ipad-air | desktop
tabstringNoTab name or id in your workspace; does not change the visible tab. minLength: 1

Full input schema#

The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "device_id": {
      "type": "string",
      "description": "Preset id from list_devices: responsive | iphone-15 | iphone-pro-max | pixel-8 | ipad-air | desktop"
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "device_id"
  ],
  "additionalProperties": false
}

Reference conventions · Agent operating guide · Troubleshooting