Browser preview

The integrated browser opens real web pages in an editor tab. You preview your app next to the code, send parts of the page to the chat, let an agent open and test pages itself, and debug the page's JavaScript with breakpoints.

What it is#

A browser tab is a native web view inside the editor area, with an address bar, back, forward, reload, history and favorites. It behaves like any other tab: you can split it to the side, group it and close it.

Use it when you work on a web app and want to:

  • see localhost while you edit, without switching to another window;
  • point the agent at an element, a screenshot or console errors instead of describing them;
  • let the agent open the page, click through it and check the result on its own;
  • step through the page's JavaScript in the debugger.

Open a page#

  1. Open a browser tab Run Browser: Open Integrated Browser from the Command Palette, or press Cmd+Alt+/ (Ctrl+Alt+/ on Windows and Linux).
  2. Enter an address Type a URL such as localhost:3000, an https:// address or a file:// path. Suggestions come from your favorites, open tabs and history. If you set a search engine, anything that is not an address is searched.
  3. Keep it next to your code Drag the tab to the side, or use Open to the Side, so the page and the editor are visible together.

Other ways in:

  • Links to localhost, 127.0.0.1 and similar addresses in the terminal or chat open in a browser tab (turn this off with Open localhost links here).
  • Right-click an .html, .htm, .mht or .mhtml file in the Explorer and choose Open in Integrated Browser. A file:// page reloads by itself when you save the file.
  • Links that open a new window (target="_blank") open in a new browser tab. Downloads go to your Downloads folder.

The toolbar also has Open Developer Tools, a favorite star, History and Page script, a small console that runs JavaScript in the page. In the page script, expressions return their value, statements need return, $(selector) and $$(selector) query the page, and $0 is the element you last picked.

Add the page to the chat#

Click Add to Chat in the browser toolbar and choose what to attach. IZ Code captures it first and then opens the chat with it attached.

ItemWhat it attaches
Add Element to ChatClick one or more elements. Attaches their HTML, and optionally their computed CSS and a screenshot of each. Click Done picking when finished.
Comment on ElementsClick an element and write a comment. Each comment gets a numbered pin on the page; removing the chip in the chat removes the pin.
Add Screenshot to ChatThe visible part of the page.
Add Area Screenshot to ChatDrag to select an area. Esc cancels.
Add Full Page Screenshot to ChatThe whole page. Experimental, off by default.
Add Console Logs to ChatWhat the page has logged to the console.

Screenshots reach the agent as images when the agent accepts images. Otherwise IZ Code saves the image to a temporary file and gives the agent its path.

Let agents use the browser#

Agents have browser tools: they can open a tab, navigate, read the page as an outline of elements, click, hover, type, press keys, select options, drag, scroll, wait, run a script, read the console and network requests, answer dialogs, change the viewport size, take screenshots and assert what the page should show. A typical loop is: start the dev server, open the page, act, read the console, take a screenshot, fix the code, reload.

The loop an agent runs to test a page
flowchart LR
  S[Start dev server] --> O[Open the page]
  O --> A[Act on it]
  A --> C["Console, screenshot"]
  C --> F[Fix the code]
  F -->|reload| O

What an agent may touch:

  • Tabs it opened itself. These use a private, temporary session (no cookies from your tabs) and show an Agent badge.
  • Tabs you shared. Click Share with Agent in the toolbar and confirm. The agent then acts with your session on that site, including your cookies and logins. Click Stop sharing with Agent to revoke access at once.

Every other tab is out of reach. This is enforced by the app, not by instructions to the agent.

The agent asks for your approval before it runs a script in a page or opens an address that is not local. Local means localhost, 127.0.0.1, [::1], 0.0.0.0, *.localhost and file://. Everything the agent reads from a page is marked as untrusted content.

Debug the page#

You can debug the JavaScript of a page in a browser tab with the JavaScript debugger, the same way you debug a Node.js program. You need the JavaScript Debugger extension (ms-vscode.js-debug), which you install from the Extensions panel.

  1. Add a launch configuration In Run and Debug, choose Create a launch.json file (or Open launch.json) and add a configuration of type editor-browser, shown as Web App (Integrated Browser). Set url to your page.
  2. Set breakpoints Click in the gutter of your page's source files.
  3. Start debugging Select the configuration and press Start Debugging. IZ Code opens the page in a browser tab and stops at your breakpoints.
.vscode/launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "editor-browser",
      "request": "launch",
      "name": "Debug app in browser tab",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceFolder}"
    }
  ]
}

Breakpoints, debugger; statements, the call stack, variables (including editing them), watch expressions, stepping, pause, break on exceptions, the Debug Console and the Network view all work. So do breakpoints inside same-origin iframes and Web Workers. To debug a page that is already open, use "request": "attach" with a urlFilter; no reload is needed.

Only your own tabs can be debugged; tabs an agent opened cannot.

Settings#

Open Settings ▸ Browser & Network. Keys are flat izcode.browser.* entries in settings.json; a workspace value wins over the user value.

SettingValuesDefault
izcode.browser.openLocalhostLinkstrue, falsetrue
izcode.browser.searchEnginenone, Bing, Google, Yahoo, DuckDuckGonone
izcode.browser.dataStorage (Cookies & site data)global (shared by all workspaces), workspace (separate per workspace), ephemeral (forgotten when the tab closes)workspace
izcode.browser.maxHistoryEntries0–5000 (0 turns history off)200
izcode.browser.pageZoom0.25–51
izcode.browser.autoReloadOnFileChangetrue, falsetrue
izcode.browser.sendElementsToChat.attachCSStrue, falsetrue
izcode.browser.sendElementsToChat.attachImagestrue, falsefalse
izcode.browser.experimentalUserTools.enabled (full-page screenshot)true, falsefalse
izcode.browser.enableChatTools (Let agents use the browser)true, falsetrue
izcode.browser.agentAllowedDomainslist of domains; empty means any, with approval for non-local addressesempty

Keyboard shortcuts#

On macOS use Cmd; on Windows and Linux use Ctrl.

ActionShortcut
Open Integrated BrowserCmd+Alt+/
Quick Open Browser Tab…Cmd+Shift+A
History (browser tab active)Cmd+Y on macOS, Ctrl+H elsewhere
Comment on Elements (browser tab active)Cmd+Alt+C
Focus URL Input (browser tab active)Cmd+L

You can rebind them like any other command. The palette also has Run Selection as JavaScript in Browser, Run File as JavaScript in Browser, Toggle Page Script Console and Close All Browser Tabs.

Limits#

Last updated: December 1, 2026Was this page helpful?