{"at":"2026-11-23T03:07:57.867Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:07:58.621Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:07:58.771Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T03:07:59.494Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"view-sim","version":"1.0.0"}}}}
{"at":"2026-11-23T03:07:59.494Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:07:59.494Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:07:59.498Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Whether the extension is connected, and every open simulator tab with its devices, URLs and viewport sizes.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"view_sim_status","title":"Simulator status"},{"description":"Every device the simulator can show (phones, tablets, Macs, displays) with screen size, pixel ratio and the browsers it supports.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"view_sim_list_devices","title":"List devices"},{"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"devices":{"description":"Devices to show, left to right. Omit to keep the site's saved devices.","items":{"anyOf":[{"description":"Device id, e.g. iphone-15-pro","type":"string"},{"properties":{"browser":{"description":"Browser UI and user agent to emulate. Defaults to Safari on Apple devices, Chrome on Android.","enum":["safari","chrome","firefox","zen"],"type":"string"},"id":{"description":"Device id from view_sim_list_devices","type":"string"},"landscape":{"type":"boolean"}},"required":["id"],"type":"object"}]},"type":"array"},"frame":{"description":"Draw device bezels, status bars and browser UI","type":"boolean"},"sync":{"description":"Navigate every device when one of them navigates","type":"boolean"},"tab_id":{"description":"Reuse this tab instead of opening a new one","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"url":{"format":"uri","type":"string"},"zoom":{"description":"How large devices are drawn on screen","enum":["1","fit","0.5","0.75"],"type":"string"}},"required":["url"],"type":"object"},"name":"view_sim_open","title":"Open a URL in the simulator"},{"description":"Replaces the devices shown in a simulator tab and reloads them.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"devices":{"items":{"anyOf":[{"description":"Device id, e.g. iphone-15-pro","type":"string"},{"properties":{"browser":{"description":"Browser UI and user agent to emulate. Defaults to Safari on Apple devices, Chrome on Android.","enum":["safari","chrome","firefox","zen"],"type":"string"},"id":{"description":"Device id from view_sim_list_devices","type":"string"},"landscape":{"type":"boolean"}},"required":["id"],"type":"object"}]},"minItems":1,"type":"array"},"tab_id":{"description":"Browser tab id from view_sim_status. Defaults to the focused simulator tab.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["devices"],"type":"object"},"name":"view_sim_set_devices","title":"Set devices"},{"description":"Loads a URL (absolute, or a path like /pricing) in the simulator's devices and waits for them to load. A URL on another site leaves the simulator unless that site is on too.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"tab_id":{"description":"Browser tab id from view_sim_status. Defaults to the focused simulator tab.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"url":{"type":"string"}},"required":["url"],"type":"object"},"name":"view_sim_navigate","title":"Navigate"},{"description":"Changes zoom, frames and navigation sync for a simulator tab.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"frame":{"description":"Draw device bezels, status bars and browser UI","type":"boolean"},"sync":{"description":"Navigate every device when one of them navigates","type":"boolean"},"tab_id":{"description":"Browser tab id from view_sim_status. Defaults to the focused simulator tab.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"zoom":{"description":"How large devices are drawn on screen","enum":["1","fit","0.5","0.75"],"type":"string"}},"type":"object"},"name":"view_sim_set_options","title":"Set display options"},{"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"device":{"anyOf":[{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},{"type":"string"}],"description":"Card index (0 = leftmost) or device id. Omit to capture every device."},"max_width":{"default":1600,"description":"Images wider than this are scaled down","maximum":8192,"minimum":200,"type":"integer"},"mode":{"default":"device","enum":["device","screen","viewport"],"type":"string"},"save_dir":{"description":"Also write the PNGs to this directory and return their paths","type":"string"},"tab_id":{"description":"Browser tab id from view_sim_status. Defaults to the focused simulator tab.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"type":"object"},"name":"view_sim_screenshot","title":"Screenshot devices"},{"description":"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. 'device' and 'screen' images have a transparent background. Pages behind a login need storage_state.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"devices":{"default":["iphone-15-pro"],"items":{"anyOf":[{"description":"Device id, e.g. iphone-15-pro","type":"string"},{"properties":{"browser":{"description":"Browser UI and user agent to emulate. Defaults to Safari on Apple devices, Chrome on Android.","enum":["safari","chrome","firefox","zen"],"type":"string"},"id":{"description":"Device id from view_sim_list_devices","type":"string"},"landscape":{"type":"boolean"}},"required":["id"],"type":"object"}]},"minItems":1,"type":"array"},"engine":{"default":"auto","enum":["auto","chromium","webkit"],"type":"string"},"frame":{"default":true,"description":"viewport mode only: false uses the whole screen as the page instead of leaving room for status and browser bars","type":"boolean"},"full_page":{"default":false,"description":"viewport mode only: capture the full scrollable page","type":"boolean"},"max_width":{"default":1600,"description":"Images are rendered at most this wide (and at most at the device's pixel ratio)","maximum":8192,"minimum":200,"type":"integer"},"mode":{"default":"device","description":"device: with bezel and stand; screen: display with status and browser bars; viewport: the web page only","enum":["device","screen","viewport"],"type":"string"},"save_dir":{"description":"Also write the PNGs to this directory and return their paths","type":"string"},"storage_state":{"description":"Path to a Playwright storage-state JSON (cookies and localStorage) for signed-in pages","type":"string"},"url":{"format":"uri","type":"string"},"wait_ms":{"default":800,"description":"Extra time after load, for animations and late content","maximum":30000,"minimum":0,"type":"integer"}},"required":["url"],"type":"object"},"name":"view_sim_headless_screenshot","title":"Headless screenshot"},{"description":"Turns the simulator off for a hostname; its tabs show the normal page after a reload.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"host":{"description":"Hostname, e.g. localhost or example.com","type":"string"}},"required":["host"],"type":"object"},"name":"view_sim_turn_off","title":"Turn the simulator off for a site"}]}}}
