Skip to content

Browser Preview

The Browser tab embeds a web browser within Tarsk, letting you preview your application while the agent works on it. This is especially useful for front-end projects where you want to see visual changes in real time.

  1. Start the dev server using the Run/Stop button (see Dev Server for setup).
  2. Click the Browser tab at the top of the thread view.
  3. Enter the URL of your dev server (e.g. http://localhost:3000) in the address bar.

The browser loads the URL and displays your application. You can interact with it just like a regular browser — click links, fill forms, and navigate pages.

The Browser tab uses an embedded web view (iframe) that loads the URL you specify. It is not a full browser — it shares the same origin restrictions and capabilities as an iframe. This means:

  • Works best with local dev servers on localhost
  • Some external sites may refuse to load in an iframe due to security headers
  • DevTools are not available — use the browser for visual preview only

A typical workflow combines the Browser tab with the agent:

  1. Start the dev server (Run/Stop button).
  2. Open the Browser tab and navigate to your app.
  3. Ask the agent to make a change (e.g. “Update the hero section background color”).
  4. The agent edits the files; hot-reload updates the browser automatically.
  5. Verify the change visually, then continue with the next request.

The Browser tab stays loaded when you switch to another tab (Chat, Explorer, etc.), so your application state is preserved. When you switch back, the page is still where you left it.

When to Use the Browser vs an External Browser

Section titled “When to Use the Browser vs an External Browser”
SituationRecommended
Quick visual check of a changeBrowser tab
Interacting with the app’s UIBrowser tab
Debugging with DevToolsExternal browser
Testing responsive layoutsBrowser tab (viewport presets)
Checking network requests or consoleExternal browser

Click Open external in the Browser toolbar to open the current URL in your system browser.

For debugging, open the same URL in Chrome, Firefox, or Safari where you have full DevTools access. The Browser tab is designed for quick preview, not deep debugging.

Use the viewport buttons in the Browser toolbar to simulate different screen sizes:

PresetIconTypical width
DesktopMonitorFull width
TabletTablet~768 px
PhoneSmartphone~375 px

This helps verify responsive layouts without opening an external browser. On the desktop app (Electrobun), the Browser tab uses a native webview for better performance.

The agent can execute JavaScript in the Browser tab context using the run_js tool. This lets the agent interact with your running app — clicking elements, reading DOM state, or testing UI behaviour. See Chat for tool details.

Click the Refresh button in the Browser tab toolbar to reload the current page. This is useful when hot-reload does not pick up a change, or when you want to reset the application state.