In the agent window, you can directly view files. Opening HTML files displays the code, but I’d prefer if there were a way to preview the files as nicely formatted web pages.
Then use the built-in browser’s design mode to comment and modify the web page.
Hey, good news, this already works in the Agents window.
To render HTML as a page, right-click the HTML file tab, then select Open in Browser. It’ll open in the built-in browser as a normal web page, not as code. This was added recently, so make sure you’re on the latest version of Cursor.
Next, in that browser, turn on Design Mode using the pen icon in the toolbar, or Cmd+Shift+D / Ctrl+Shift+D. In this mode, you can click elements, draw on top, and leave annotations, then ask the agent to apply changes based on those visual hints.
Let me know if you meant something else, or if Open in Browser doesn’t show up in the context menu.