view-sim
v1.1.1See a site on phones, tablets and laptops in Safari, Chrome, Firefox or Zen frames; PNG screenshots.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
view_sim_status Simulator status
Whether the extension is connected, and every open simulator tab with its devices, URLs and viewport sizes.
view_sim_list_devices List devices
Every device the simulator can show (phones, tablets, Macs, displays) with screen size, pixel ratio and the browsers it supports.
view_sim_open Open a URL in the simulator
Opens a URL in a new browser tab with the simulator on for its site, optionally choosing the devices. Waits until every device has loaded. The site must have been allowed once from the extension's toolbar button in Firefox/Zen.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
devices | array | Devices to show, left to right. Omit to keep the site's saved devices. |
frame | boolean | Draw device bezels, status bars and browser UI |
sync | boolean | Navigate every device when one of them navigates |
tab_id | integer | Reuse this tab instead of opening a new one |
zoom | string | How large devices are drawn on screen |
view_sim_set_devices Set devices
Replaces the devices shown in a simulator tab and reloads them.
| Parameter | Type | Description |
|---|---|---|
devices * | array | |
tab_id | integer | Browser tab id from view_sim_status. Defaults to the focused simulator tab. |
view_sim_set_options Set display options
Changes zoom, frames and navigation sync for a simulator tab.
| Parameter | Type | Description |
|---|---|---|
frame | boolean | Draw device bezels, status bars and browser UI |
sync | boolean | Navigate every device when one of them navigates |
tab_id | integer | Browser tab id from view_sim_status. Defaults to the focused simulator tab. |
zoom | string | How large devices are drawn on screen |
view_sim_screenshot Screenshot devices
Screenshots one device, or every device in the extension's simulator tab (uses your real browser session, so signed-in pages work). mode 'device' includes the bezel and stand, 'screen' is the whole display with status bar and browser UI, 'viewport' is only the web page; 'device' and 'screen' have a transparent background. The tab is brought to the front while capturing. For screenshots without a browser window, use view_sim_headless_screenshot.
| Parameter | Type | Description |
|---|---|---|
device | Card index (0 = leftmost) or device id. Omit to capture every device. | |
max_width | integer | Images wider than this are scaled down |
mode | string | |
save_dir | string | Also write the PNGs to this directory and return their paths |
tab_id | integer | Browser tab id from view_sim_status. Defaults to the focused simulator tab. |
view_sim_headless_screenshot Headless screenshot
Screenshots a URL on simulated devices without any browser window or the extension, using Playwright with real device emulation (viewport, pixel ratio, touch, mobile mode, user agent). Safari devices render in WebKit, the others in Chromium. The page can be set up first: dark mode, hidden elements, extra CSS, and steps such as clicks; selectors are Playwright selectors. 'device' and 'screen' images have a transparent background. Pages behind a login need storage_state.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
actions | array | Steps run in order after load and before capture, e.g. open a menu, fill a field or hover a button |
color_scheme | string | prefers-color-scheme the page sees; omit for the browser default (light) |
css | string | Extra CSS injected into the page before capture |
devices | array | |
engine | string | |
frame | boolean | viewport mode only: false uses the whole screen as the page instead of leaving room for status and browser bars |
full_page | boolean | viewport mode only: capture the full scrollable page |
hide | array | CSS selectors to hide before capture, e.g. cookie banners or chat widgets |
max_width | integer | Images are rendered at most this wide (and at most at the device's pixel ratio) |
mode | string | device: with bezel and stand; screen: display with status and browser bars; viewport: the web page only |
reduced_motion | string | prefers-reduced-motion the page sees; 'reduce' settles many animations before capture |
save_dir | string | Also write the PNGs to this directory and return their paths |
selector | string | Selector (CSS, or Playwright extras such as :visible and :has-text()) of an element. viewport mode captures only that element; device and screen modes scroll it to the top of the screen |
storage_state | string | Path to a Playwright storage-state JSON (cookies and localStorage) for signed-in pages |
wait_ms | integer | Extra time after load, for animations and late content |
view_sim_device_viewport Device page size
The page area each device leaves for the site once its status bar and browser bars are drawn, with the pixel ratio and user agent to emulate. Use it to size another browser (e.g. Playwright MCP's browser_resize) before taking a screenshot to pass to view_sim_frame. Needs no extension.
| Parameter | Type | Description |
|---|---|---|
devices * | array |
view_sim_frame Frame a screenshot
Draws a device (bezel, status bar and browser bars) around a PNG screenshot taken elsewhere, such as by Playwright MCP. Take the screenshot at the size view_sim_device_viewport gives for that device; a different shape is fitted to the device's width and cut or padded at the bottom. The result has a transparent background. Needs no extension.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the PNG screenshot of the page (the viewport only, not the whole window) |
background | string | Fills the page area below a screenshot that is too short |
devices | array | One framed image per device |
max_width | integer | |
mode | string | device: with bezel and stand; screen: display with status and browser bars |
save_dir | string | Also write the PNGs to this directory and return their paths |
theme_color | string | The page's theme-color, which tints Safari's bars on phones |
title | string | Shown on the tab, on desktop browsers |
url | string | Shown in the address bar |
view_sim_turn_off Turn the simulator off for a site
Turns the simulator off for a hostname; its tabs show the normal page after a reload.
| Parameter | Type | Description |
|---|---|---|
host * | string | Hostname, e.g. localhost or example.com |