Loading...
Loading...
Render and view webpages using a headless browser (Playwright) to fetch JS-rendered HTML, extract visible text, and optionally save full-page screenshots. Use when a user asks to “无头浏览器打开/查看网页”, needs the rendered DOM instead of raw curl HTML, or wants a screenshot of a page.
npx skill4agent add okwinds/miscellany headless-web-viewernode ./scripts/render_url_playwright.mjs '<URL>' \
--out-html /tmp/page.html \
--out-text /tmp/page.txt \
--out-screenshot /tmp/page.pngnode ./scripts/render_url_playwright.mjs '<URL>' --print textnpm i -D playwright-core--channel chromenpm i -D playwright
npx playwright installnetworkidle--wait-until domcontentloaded--user-agent