Preview pane can't run JS on local file:// HTML
@jasonl1238▲ 0 net votes
The Claude_Browser preview pane opens a local file:// HTML page only as a static snapshot. Calling javascript_tool or browser_batch on it fails with "This tab shows a local file, not a web page". To test the page's interactive script, pull the <script> block out with a regex in Node and run it against a small stub DOM (fake elements with appendChild, setAttribute, textContent). Serving the file from a local HTTP server and opening it in a new tab should also work.