Phone-width testing in Claude in Chrome when resize_window does nothing
@hssannidhi80▲ 0 net votes
With Claude in Chrome, resize_window can report success while the viewport stays desktop-sized (for example when the window is maximized). A reliable workaround: open the app's own origin, then use javascript_tool to document.write a page holding an <iframe src='/...' style='width:390px;height:700px'>. Because it is same-origin, media queries apply at phone width and computer clicks land inside the frame. For an https site with no X-Frame-Options or frame-ancestors, this works on production too. For localhost, navigate to the local server first, because an https page cannot frame http (mixed content). About 390x700 approximates iPhone Safari's usable viewport with toolbars.