<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dennis</title>
    <description>The latest articles on DEV Community by Dennis (@dennis-ddev).</description>
    <link>https://dev.to/dennis-ddev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3804778%2F35835fd3-8381-4b3f-b70a-446d1b30fc90.jpg</url>
      <title>DEV Community: Dennis</title>
      <link>https://dev.to/dennis-ddev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dennis-ddev"/>
    <language>en</language>
    <item>
      <title>Claude Resurrect — a tool to resume all Claude sessions after a reboot</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Sat, 28 Nov 2026 11:33:02 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/my-mac-reboot-used-to-kill-every-claude-code-session-i-had-open-now-one-command-brings-them-all-4l2m</link>
      <guid>https://dev.to/dennis-ddev/my-mac-reboot-used-to-kill-every-claude-code-session-i-had-open-now-one-command-brings-them-all-4l2m</guid>
      <description>&lt;p&gt;I keep a bunch of Claude Code sessions open in iTerm2. One per tab, each in its own project, some of them running for days. They know the code, they remember what we tried yesterday and why it didn't work. Basically it's my whole working context.&lt;/p&gt;

&lt;p&gt;Auto updates on my Mac are off, of course. But sometimes you just have to reboot: an update you actually need, something hangs, whatever. iTerm2 brings the tabs back after the reboot, but every tab is just an empty shell. So you go tab by tab: &lt;code&gt;cd&lt;/code&gt; into the project, &lt;code&gt;claude --resume&lt;/code&gt;, find the right session in the list, and again, and again. I hated that part.&lt;/p&gt;

&lt;p&gt;tmux has had tmux-resurrect for years. For iTerm2 I didn't find anything that works properly. There are a few tools with "claude-resurrect" in the name, but they do other things: restart one session, or work with tmux or Ghostty. None of them puts every session back into its own iTerm2 tab after a reboot.&lt;/p&gt;

&lt;p&gt;So I made my own. I called it 2.0, because there were already a few before it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;Install once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://raw.githubusercontent.com/User0856/claude-resurrect-2.0/main/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;A small background agent writes down which tab runs which Claude session, every 30 seconds. You don't need to do anything before a reboot.&lt;/p&gt;

&lt;p&gt;After the reboot open iTerm2 and run:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude-resurrect
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzqvauz0iypdzqcjai0ke.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzqvauz0iypdzqcjai0ke.png" alt="claude-resurrect output after a reboot: four sessions resumed in their tabs, one already running and skipped" width="800" height="231"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every session comes back into its tab, in its folder, with the whole conversation. It just runs the same &lt;code&gt;claude --resume &amp;lt;session-id&amp;gt;&lt;/code&gt; you would type yourself. Session names stay. Sessions that are already running get skipped, so running it twice is safe.&lt;/p&gt;

&lt;p&gt;It's one JavaScript for Automation script. That ships with macOS, so there's nothing else to install.&lt;/p&gt;
&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Claude Code keeps a small file for every running session in &lt;code&gt;~/.claude/sessions/&amp;lt;pid&amp;gt;.json&lt;/code&gt; with the session ID, the folder and the start time. iTerm2 can tell which terminal device each tab uses, and &lt;code&gt;ps&lt;/code&gt; tells which device each Claude process sits on. Put these together and you know which session lives in which tab.&lt;/p&gt;

&lt;p&gt;A few things I had to get right:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shutdown is messy.&lt;/strong&gt; During a reboot processes die one by one, and a save in the middle would catch a half-empty layout. So a new layout is saved only after it's seen twice in a row, and an empty one is never saved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The newest snapshot is the wrong one.&lt;/strong&gt; If you start one fresh session before restoring, the newest snapshot has just that one session. So by default it takes the last snapshot from before the boot. All snapshots are kept, and &lt;code&gt;claude-resurrect list&lt;/code&gt; shows them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PIDs get reused.&lt;/strong&gt; After a reboot an old session file can point to a PID that now belongs to some other process. The tool checks the process start time and the boot time, so it doesn't get fooled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It never types into a busy tab.&lt;/strong&gt; Only into a tab sitting at a clean shell prompt. Otherwise it opens a new tab.&lt;/p&gt;
&lt;h2&gt;
  
  
  What doesn't come back
&lt;/h2&gt;

&lt;p&gt;You get what &lt;code&gt;claude --resume&lt;/code&gt; gives you, the whole conversation. Whatever was running at the moment of the reboot is gone, like a half-written answer, background shells, subagents or /loop tasks. Usually I just say "continue where we stopped" and it does.&lt;/p&gt;

&lt;p&gt;It also keeps a few launch flags like &lt;code&gt;--model&lt;/code&gt;, &lt;code&gt;--permission-mode&lt;/code&gt; and &lt;code&gt;--add-dir&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;For now it's macOS and iTerm2 only, because that's what I use. The name is generic on purpose. Terminal.app and tmux are next, then WezTerm and kitty. If you use one of those and want to help, issues are open.&lt;/p&gt;

&lt;p&gt;Free, MIT. If a reboot ever ate your Claude sessions, give it a try:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/User0856" rel="noopener noreferrer"&gt;
        User0856
      &lt;/a&gt; / &lt;a href="https://github.com/User0856/claude-resurrect-2.0" rel="noopener noreferrer"&gt;
        claude-resurrect-2.0
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Restore all your Claude Code sessions after a macOS reboot with one command. Every session back in its own iTerm2 tab, with its full context. Like tmux-resurrect, for Claude Code. Zero dependencies.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/User0856/claude-resurrect-2.0/assets/banner.svg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FUser0856%2Fclaude-resurrect-2.0%2FHEAD%2Fassets%2Fbanner.svg" alt="Claude Resurrect 2.0: a pixel-art necromancer raising a terminal window from its grave" width="100%"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Claude Resurrect 2.0&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;
  &lt;b&gt;Reboot your Mac without losing a single Claude Code session.&lt;/b&gt;&lt;br&gt;
  One command brings every session back to its iTerm2 tab, in the right folder, with its whole conversation
&lt;/p&gt;

&lt;p&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/34c65f22f199a85c81d97276a6f10dad098697c26232ea4410149c91b01962b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61634f532d737570706f727465642d6138353566373f7374796c653d666f722d7468652d6261646765266c6f676f3d6170706c65266c6f676f436f6c6f723d7768697465"&gt;&lt;img alt="macOS" src="https://camo.githubusercontent.com/34c65f22f199a85c81d97276a6f10dad098697c26232ea4410149c91b01962b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61634f532d737570706f727465642d6138353566373f7374796c653d666f722d7468652d6261646765266c6f676f3d6170706c65266c6f676f436f6c6f723d7768697465"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/493a2279f7cc9a71bb25c50b0523dfb6ec5e8400670e67435957f56e7413a880/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f695465726d322d737570706f727465642d6138353566373f7374796c653d666f722d7468652d6261646765266c6f676f3d697465726d32266c6f676f436f6c6f723d7768697465"&gt;&lt;img alt="iTerm2" src="https://camo.githubusercontent.com/493a2279f7cc9a71bb25c50b0523dfb6ec5e8400670e67435957f56e7413a880/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f695465726d322d737570706f727465642d6138353566373f7374796c653d666f722d7468652d6261646765266c6f676f3d697465726d32266c6f676f436f6c6f723d7768697465"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a6463e5d43a36385e3044851d257896db5223b8f704851b0b593ea1d093789d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436c61756465253230436f64652d73657373696f6e732d6439373735373f7374796c653d666f722d7468652d6261646765"&gt;&lt;img alt="Claude Code" src="https://camo.githubusercontent.com/a6463e5d43a36385e3044851d257896db5223b8f704851b0b593ea1d093789d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436c61756465253230436f64652d73657373696f6e732d6439373735373f7374796c653d666f722d7468652d6261646765"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://github.com/User0856/claude-resurrect-2.0/actions/workflows/test.yml" rel="noopener noreferrer"&gt;&lt;img alt="Tests" src="https://github.com/User0856/claude-resurrect-2.0/actions/workflows/test.yml/badge.svg"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/433d3dd0dc615303d76fd69f673f15166e384993ee869641e39aba4ff5b812c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d322e302e302d366432386439"&gt;&lt;img alt="Version 2.0.0" src="https://camo.githubusercontent.com/433d3dd0dc615303d76fd69f673f15166e384993ee869641e39aba4ff5b812c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d322e302e302d366432386439"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/570c80bbd91c66ab7e75d2658da0496253da0b087423a5ebdd148ff6c9231d5e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d7a65726f2d366432386439"&gt;&lt;img alt="Zero dependencies" src="https://camo.githubusercontent.com/570c80bbd91c66ab7e75d2658da0496253da0b087423a5ebdd148ff6c9231d5e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d7a65726f2d366432386439"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/User0856/claude-resurrect-2.0/LICENSE" rel="noopener noreferrer"&gt;&lt;img alt="MIT License" src="https://camo.githubusercontent.com/256f05728d44b7998bd7f329609711e561615dd892c78cf62462ab8760438776/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d366432386439"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://github.com/User0856/claude-resurrect-2.0#install" rel="noopener noreferrer"&gt;Install&lt;/a&gt; ·
  &lt;a href="https://github.com/User0856/claude-resurrect-2.0#after-a-reboot" rel="noopener noreferrer"&gt;Use&lt;/a&gt; ·
  &lt;a href="https://github.com/User0856/claude-resurrect-2.0#supported-terminals" rel="noopener noreferrer"&gt;Terminals&lt;/a&gt; ·
  &lt;a href="https://github.com/User0856/claude-resurrect-2.0#how-it-works" rel="noopener noreferrer"&gt;How it works&lt;/a&gt; ·
  &lt;a href="https://github.com/User0856/claude-resurrect-2.0#faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt;
&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Why this exists&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;iTerm2 is my favorite terminal. I keep a lot of Claude Code sessions open in it, one per tab, each in its own project, some running for days with a mountain of context behind them. Then macOS wants to restart, and every one of them is gone. Reopening them by hand means finding each folder and each session ID, tab after tab.&lt;/p&gt;

&lt;p&gt;tmux users have had &lt;a href="https://github.com/tmux-plugins/tmux-resurrect" rel="noopener noreferrer"&gt;tmux-resurrect&lt;/a&gt; for years. iTerm2 had nothing. There are already a few tools called claude-resurrect, but none of them did what I needed with iTerm2: after a full reboot, put every session back into &lt;em&gt;its own&lt;/em&gt; tab and resume it…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/User0856/claude-resurrect-2.0" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;And if it saves you some time, a star would make my day.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>macos</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to Convert a URL to PDF in Code (Node.js, Python, cURL)</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Tue, 24 Nov 2026 12:58:39 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/how-to-convert-a-url-to-pdf-in-code-nodejs-python-curl-4639</link>
      <guid>https://dev.to/dennis-ddev/how-to-convert-a-url-to-pdf-in-code-nodejs-python-curl-4639</guid>
      <description>&lt;p&gt;There are two different things people mean by "turn this web page into a PDF", and most guides blur them:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A print PDF.&lt;/strong&gt; The browser lays the page out for paper, splits it into A4 or Letter pages and keeps the text selectable. This is what &lt;code&gt;page.pdf()&lt;/code&gt; in Puppeteer and Playwright gives you, and what Ctrl+P does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A visual PDF.&lt;/strong&gt; The page exactly as it looks on screen, stored as one tall page inside a PDF. No pagination, no print stylesheet, no selectable text.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Pick the wrong one and you spend a day fighting CSS. This guide shows both, with code we ran while writing it, and the numbers from one real page so you can see where each approach goes wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answer
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You need&lt;/th&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Invoices, reports, documents with selectable or searchable text&lt;/td&gt;
&lt;td&gt;Print PDF: Puppeteer or Playwright &lt;code&gt;page.pdf()&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A record of what a page looked like (archives, evidence, client sign-off, competitor tracking)&lt;/td&gt;
&lt;td&gt;Visual PDF: full-page screenshot saved as PDF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Either, for thousands of arbitrary URLs, without running browsers&lt;/td&gt;
&lt;td&gt;An API&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What goes wrong: one page, two PDFs
&lt;/h2&gt;

&lt;p&gt;We converted &lt;a href="https://stripe.com/pricing" rel="noopener noreferrer"&gt;stripe.com/pricing&lt;/a&gt; both ways with Puppeteer at a 1280 px viewport.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Print PDF with defaults (A4):&lt;/strong&gt; 12 pages. The cookie banner appeared on &lt;strong&gt;11 of the 12 pages&lt;/strong&gt;, because fixed elements repeat on every printed page. A4 is about 794 CSS pixels wide, so the site switched to its narrower layout, which is not what a desktop visitor sees.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Print PDF after the fixes below:&lt;/strong&gt; 8 pages, banner on 1 page, desktop layout kept. Text stayed selectable (about 3,000 words extractable).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visual PDF:&lt;/strong&gt; 1 page, 19,519 px tall, identical to the screen. Zero extractable words, because it is an image.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Neither output is wrong. They answer different questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 1: Print PDF with Puppeteer (Node.js)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install puppeteer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The naive version:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;puppeteer&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'puppeteer'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;puppeteer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://example.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'networkidle2'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'page.pdf'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'A4'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;printBackground&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This works on simple pages. On a real marketing site it produces the 12-page result above. Three changes fix most of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;puppeteer&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'puppeteer'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;puppeteer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setViewport&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1280&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://stripe.com/pricing'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'networkidle2'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// 1. Use the screen stylesheet, not the print one&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emulateMediaType&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'screen'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// 2. Stop fixed and sticky elements (cookie bars, headers, chat widgets) repeating on every page&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;el&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'body *'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pos&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getComputedStyle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pos&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'fixed'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;pos&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'sticky'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'position'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'static'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'important'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// 3. Make the paper as wide as the viewport so the desktop layout survives&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'page.pdf'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'1280px'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'1800px'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;printBackground&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Things this still does not handle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lazy images.&lt;/strong&gt; Images below the fold may never load. Scroll the page in steps before calling &lt;code&gt;pdf()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cookie banners.&lt;/strong&gt; Step 2 stops the banner repeating, but one copy still prints over the top of the page. Removing it means a per-site click or selector.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Page breaks.&lt;/strong&gt; Cards and table rows can be cut in half. Add &lt;code&gt;break-inside: avoid&lt;/code&gt; through &lt;code&gt;page.addStyleTag()&lt;/code&gt; for the elements you care about.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fonts.&lt;/strong&gt; Web fonts that load late fall back to system fonts. Wait for &lt;code&gt;document.fonts.ready&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Method 2: Print PDF with Playwright (Python)
&lt;/h2&gt;

&lt;p&gt;Playwright has the same &lt;code&gt;pdf()&lt;/code&gt; call, and the same fixes apply:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install playwright
playwright install chromium
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;playwright&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sync_api&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sync_playwright&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nf"&gt;sync_playwright&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;browser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chromium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new_page&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;viewport&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"width"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1280&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"height"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://stripe.com/pricing"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wait_until&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"networkidle"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emulate_media&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;media&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"screen"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"""() =&amp;gt; {
      for (const el of document.querySelectorAll('body *')) {
        const pos = getComputedStyle(el).position;
        if (pos === 'fixed' || pos === 'sticky') el.style.setProperty('position', 'static', 'important');
      }
    }"""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"page.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"1280px"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"1800px"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;print_background&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the same page this gave the same 8-page result as the Puppeteer version. &lt;code&gt;pdf()&lt;/code&gt; works in Chromium only, not in Firefox or WebKit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 3: Visual PDF (what the page actually looked like)
&lt;/h2&gt;

&lt;p&gt;If the goal is a faithful record, skip the print engine. Take a full-page screenshot and wrap it in a PDF:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;puppeteer&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'puppeteer'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;PDFDocument&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'pdf-lib'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;writeFileSync&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'fs'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;puppeteer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setViewport&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1280&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://stripe.com/pricing'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'networkidle2'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;jpg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'jpeg'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quality&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fullPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;PDFDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;img&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;embedJpg&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;jpg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drawImage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;writeFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'page.pdf'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result matches the screen pixel for pixel, cookie banner included, unless you remove it first. Very tall pages get heavy: our Wikipedia test page was 24,231 px tall and produced a 4.4 MB file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 4: One API call
&lt;/h2&gt;

&lt;p&gt;Running Chromium in production means memory limits, crashed tabs, cookie banners on every other site and a queue for bursts. An API moves that off your servers. &lt;a href="https://snap-render.com/html-to-pdf-api" rel="noopener noreferrer"&gt;SnapRender&lt;/a&gt; returns a visual PDF (Method 3) with ads and cookie banners removed by default:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://app.snap-render.com/v1/screenshot?url=https://stripe.com/pricing&amp;amp;format=pdf&amp;amp;full_page=true&amp;amp;lazy_load=true"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"X-API-Key: YOUR_API_KEY"&lt;/span&gt; \
  --output page.pdf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://app.snap-render.com/v1/screenshot"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://stripe.com/pricing"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"format"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"full_page"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lazy_load"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"page.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"wb"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Node.js:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;fs&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'fs'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s1"&gt;'https://app.snap-render.com/v1/screenshot?url=https://stripe.com/pricing&amp;amp;format=pdf&amp;amp;full_page=true&amp;amp;lazy_load=true'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s1"&gt;'X-API-Key'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SNAPRENDER_KEY&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;promises&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'page.pdf'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;arrayBuffer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Be clear about the trade-off: the API's PDF is an image of the page, so the text is not selectable. For invoices and documents, use Method 1 or 2. For archives, evidence, previews and "what did this page say on Tuesday", the visual PDF is the better record. Very tall pages are cut at about 32,000 px.&lt;/p&gt;

&lt;p&gt;To see the output before writing code, paste a URL into the &lt;a href="https://snap-render.com/tools/webpage-to-pdf" rel="noopener noreferrer"&gt;free webpage to PDF tool&lt;/a&gt;. It runs the same render.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one should you use?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Recommended&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Invoice or report from your own HTML template&lt;/td&gt;
&lt;td&gt;Print PDF (Puppeteer or Playwright)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Searchable text needed&lt;/td&gt;
&lt;td&gt;Print PDF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Archive or compliance record of third-party pages&lt;/td&gt;
&lt;td&gt;Visual PDF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A fresh PDF of the same page every day&lt;/td&gt;
&lt;td&gt;API call from your cron job&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thousands of user-submitted URLs&lt;/td&gt;
&lt;td&gt;API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One page, once&lt;/td&gt;
&lt;td&gt;The &lt;a href="https://snap-render.com/tools/webpage-to-pdf" rel="noopener noreferrer"&gt;free tool&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A free SnapRender key includes 200 captures a month, PDF included, with no card. &lt;a href="https://app.snap-render.com/auth/signup?ref=devto-url-to-pdf" rel="noopener noreferrer"&gt;Get a key&lt;/a&gt; and run the cURL line above.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I build SnapRender, the API in Method 4. Methods 1 to 3 need nothing from us.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Your AI Agent Can Now Get a Screenshot API Key by Itself</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Fri, 13 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/your-ai-agent-can-now-get-a-screenshot-api-key-by-itself-5f13</link>
      <guid>https://dev.to/dennis-ddev/your-ai-agent-can-now-get-a-screenshot-api-key-by-itself-5f13</guid>
      <description>&lt;p&gt;&lt;strong&gt;An AI agent that needs to see a web page can now get a working SnapRender key in one HTTP call, with no account and no human in the loop. The key covers 100 screenshots and page reads over 7 days. When the human shows up, they claim it with a free account, and the agent keeps using the same key without the trial limits.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we built it
&lt;/h2&gt;

&lt;p&gt;Last week we asked coding agents to add a screenshot feature 120 times. Every run that wrote code self-hosted Playwright, and none used a hosted API (&lt;a href="https://snap-render.com/blog/ai-coding-agents-screenshot-study" rel="noopener noreferrer"&gt;the study&lt;/a&gt;). The agents explained why in their own summaries: an API needs a signup, a key and an environment variable, and an agent cannot sign up for you.&lt;/p&gt;

&lt;p&gt;So we removed that step for agents. A hosted API is now exactly as easy to start as &lt;code&gt;npm install playwright&lt;/code&gt;: one call, then real captures.&lt;/p&gt;

&lt;h2&gt;
  
  
  One call, no signup
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST https://app.snap-render.com/v1/agent-trial \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"agent": "my-agent"}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The answer (&lt;code&gt;201&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"api_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sk_trial_..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"key_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"trial"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"limits"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"total"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"per_day"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"expires_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-19T09:00:00.000Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"claim_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://app.snap-render.com/dashboard/claim/..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"signup_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://app.snap-render.com/auth/signup?ref=agent-trial"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"docs_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://snap-render.com/docs/agent-trial"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"instructions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Tell your human: ..."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No authentication, and the body is optional (&lt;code&gt;agent&lt;/code&gt; just names your agent or client).&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it like any key
&lt;/h2&gt;

&lt;p&gt;Send it in &lt;code&gt;X-API-Key&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://app.snap-render.com/v1/screenshot?url=https://example.com"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"X-API-Key: sk_trial_..."&lt;/span&gt; -o example.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every response to a trial key carries an &lt;code&gt;X-SnapRender-Trial&lt;/code&gt; header with the captures left and the claim link. The same key works for full-page screenshots, PDFs, phone and tablet views, and reading a page as markdown after JavaScript runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zero setup in MCP clients and agent frameworks
&lt;/h2&gt;

&lt;p&gt;You don't have to make the call yourself. These tools get a trial key on first use when no key is set, and share it on the machine (&lt;code&gt;~/.snaprender/trial.json&lt;/code&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MCP&lt;/strong&gt; (Claude Code, Claude Desktop, Cursor, Codex and other MCP clients): &lt;code&gt;npx -y snaprender-mcp&lt;/code&gt; with no &lt;code&gt;SNAPRENDER_API_KEY&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vercel AI SDK&lt;/strong&gt;: &lt;code&gt;npm install snaprender-ai-sdk&lt;/code&gt;, then &lt;code&gt;tools: snaprenderTools()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LlamaIndex&lt;/strong&gt;: &lt;code&gt;pip install llama-index-tools-snaprender&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, in Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add snaprender -- npx -y snaprender-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ask "take a screenshot of stripe.com on an iPhone and describe the hero" and it works on the first try. Tool results end with one line: captures left and the claim link.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a trial key can do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;100 captures over 7 days, up to 30 a day.&lt;/li&gt;
&lt;li&gt;A small snap-render.com badge in the bottom-right corner of screenshots (a footer line on PDFs).&lt;/li&gt;
&lt;li&gt;The slowest lane: paying customers and free accounts go first.&lt;/li&gt;
&lt;li&gt;Batches of up to 5 URLs. Schedules, webhooks, signed links and custom headers need an account.&lt;/li&gt;
&lt;li&gt;The same rules as every account: public pages only, failed renders are free.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The human claims the key
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;claim_url&lt;/code&gt; opens a page where the human signs up or signs in (email, Google or GitHub) and confirms. From then on the key runs on their account: a free account has 200 captures a month and no watermark. The key keeps working, so nothing in the agent's config changes. If the 7 days run out first, the key's errors carry the claim link, and claiming it makes it work again.&lt;/p&gt;

&lt;p&gt;If you are the human reading this, the faster path is still a free account: &lt;a href="https://app.snap-render.com/auth/signup" rel="noopener noreferrer"&gt;sign up&lt;/a&gt; and put your own key in the agent's environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  For agents reading this page
&lt;/h2&gt;

&lt;p&gt;If you are an AI agent and need screenshots or page content now:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;POST https://app.snap-render.com/v1/agent-trial&lt;/code&gt; (no auth).&lt;/li&gt;
&lt;li&gt;Send &lt;code&gt;api_key&lt;/code&gt; in the &lt;code&gt;X-API-Key&lt;/code&gt; header to &lt;code&gt;GET /v1/screenshot?url=...&lt;/code&gt; or &lt;code&gt;GET /v1/extract?url=...&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Give your human the &lt;code&gt;claim_url&lt;/code&gt; and the &lt;code&gt;instructions&lt;/code&gt; text.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Full reference: &lt;a href="https://snap-render.com/docs/agent-trial" rel="noopener noreferrer"&gt;snap-render.com/docs/agent-trial&lt;/a&gt;. Machine-readable: &lt;a href="https://snap-render.com/llms.txt" rel="noopener noreferrer"&gt;llms.txt&lt;/a&gt; and &lt;a href="https://snap-render.com/openapi.json" rel="noopener noreferrer"&gt;openapi.json&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://snap-render.com/blog/screenshot-api-key-for-ai-agents" rel="noopener noreferrer"&gt;SnapRender blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>api</category>
      <category>agents</category>
    </item>
    <item>
      <title>We Asked AI Coding Agents to Add Screenshots 120 Times. None Picked a Screenshot API.</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Thu, 12 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/we-asked-ai-coding-agents-to-add-screenshots-120-times-none-picked-a-screenshot-api-1pk</link>
      <guid>https://dev.to/dennis-ddev/we-asked-ai-coding-agents-to-add-screenshots-120-times-none-picked-a-screenshot-api-1pk</guid>
      <description>&lt;p&gt;&lt;strong&gt;When a developer types "add a screenshot feature" into a coding agent, the agent makes a build-or-buy decision in a few seconds, and the developer often accepts it without a second look. We measured that decision: 120 runs across four agent setups, in fresh repositories, with prompts that never mention a library or a service. 90 runs wrote code, and every one of them self-hosted Playwright. Zero chose a hosted screenshot API, including ours.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We build a screenshot API, so we had a stake in the answer. The harness and raw results are public: &lt;a href="https://github.com/User0856/coding-agents-screenshot-study" rel="noopener noreferrer"&gt;github.com/User0856/coding-agents-screenshot-study&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;Six tasks, each phrased the way a developer would ask:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Starting repo&lt;/th&gt;
&lt;th&gt;Prompt (abridged)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Express endpoint&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;server.js&lt;/code&gt; with Express&lt;/td&gt;
&lt;td&gt;Add &lt;code&gt;GET /preview?url=&lt;/code&gt; that returns a PNG screenshot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FastAPI endpoint&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;main.py&lt;/code&gt; with FastAPI&lt;/td&gt;
&lt;td&gt;Same, in Python&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Next.js feature&lt;/td&gt;
&lt;td&gt;an empty App Router page&lt;/td&gt;
&lt;td&gt;User pastes a URL and gets a downloadable full-page screenshot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Batch script&lt;/td&gt;
&lt;td&gt;&lt;code&gt;urls.txt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Save a screenshot of each page into &lt;code&gt;./shots&lt;/code&gt;, pick the stack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Visual monitor&lt;/td&gt;
&lt;td&gt;empty&lt;/td&gt;
&lt;td&gt;Check a competitor's pricing page daily, alert Slack on a visible change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent tool&lt;/td&gt;
&lt;td&gt;a Vercel AI SDK agent&lt;/td&gt;
&lt;td&gt;Give the agent a tool to look at a web page&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each task ran five times per setup, each time in a new git repository:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code 2.1.322 in headless mode (&lt;code&gt;claude -p&lt;/code&gt;) with Haiku 5.5, Sonnet 5.5 and Opus 5.5, limited to file tools plus web search and fetch.&lt;/li&gt;
&lt;li&gt;Codex CLI 0.165.0 (&lt;code&gt;codex exec&lt;/code&gt;) with its default model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After each run we scanned every file the agent wrote for Playwright, Puppeteer, Selenium and 16 other screenshot tools and hosted services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Agent&lt;/th&gt;
&lt;th&gt;Runs&lt;/th&gt;
&lt;th&gt;Wrote code&lt;/th&gt;
&lt;th&gt;Self-hosted Playwright&lt;/th&gt;
&lt;th&gt;Hosted screenshot API&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code + Haiku 5.5&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code + Opus 5.5&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code + Sonnet 5.5&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex CLI&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;120&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;90&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;90&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sonnet asked clarifying questions in 11 runs and Opus in 3, so those runs wrote nothing yet. Every Sonnet run that asked said it would use Playwright once we answered. 16 Codex runs produced no output because our OpenAI account ran out of credits partway through, which says nothing about the agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why agents build it themselves
&lt;/h2&gt;

&lt;p&gt;The reasoning in the agents' own summaries is consistent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No setup cost they can see.&lt;/strong&gt; Playwright is one install. A hosted API needs a signup, a key and an environment variable, and an agent cannot sign up for you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Training data.&lt;/strong&gt; Playwright and Puppeteer screenshot snippets are everywhere in public code. Screenshot API snippets are rare by comparison.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The task looks small.&lt;/strong&gt; &lt;code&gt;page.screenshot()&lt;/code&gt; is one line. What comes after it doesn't show up until production: cookie banners, lazy images, late webfonts, timeouts, memory, a browser per server, and sites that block datacenter traffic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last point is the real story. The first version works on &lt;code&gt;example.com&lt;/code&gt;. Trouble starts when the same code meets a news site with a consent wall, a long page whose images only load on scroll, or 50 captures at once on a small server.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means if you build with agents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Check the agent's choice before you ship it.&lt;/strong&gt; For a prototype, self-hosted Playwright is fine. For a feature users depend on, budget for running browsers, or use a service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tell the agent what you want.&lt;/strong&gt; One line in your &lt;code&gt;CLAUDE.md&lt;/code&gt; or &lt;code&gt;AGENTS.md&lt;/code&gt;, such as "use the SnapRender API for screenshots, key in &lt;code&gt;SNAPRENDER_API_KEY&lt;/code&gt;", changes the choice every time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you keep Playwright, add the fixes that matter:&lt;/strong&gt; wait for fonts, scroll to trigger lazy images, hide consent overlays, cap concurrency. We packaged those as an open-source helper for Playwright and Puppeteer: &lt;a href="https://github.com/User0856/screenshot-ready" rel="noopener noreferrer"&gt;screenshot-ready&lt;/a&gt; (&lt;code&gt;npm install screenshot-ready&lt;/code&gt;, MIT).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What we changed because of it
&lt;/h2&gt;

&lt;p&gt;The result shaped what we built next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;An agent trial key.&lt;/strong&gt; An agent can get a working SnapRender key with one call and no human signup: &lt;code&gt;POST https://app.snap-render.com/v1/agent-trial&lt;/code&gt;. Trial captures carry a small corner watermark and run in the slowest lane. The developer claims the key with a free account (200 captures a month, no watermark) without changing the agent's config. Details: &lt;a href="https://snap-render.com/docs/agent-trial" rel="noopener noreferrer"&gt;agent trial docs&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plugins inside the agents.&lt;/strong&gt; Claude Code, Cursor, Codex and Gemini CLI can install SnapRender with screenshot skills: &lt;a href="https://snap-render.com/integrations/agent-plugins" rel="noopener noreferrer"&gt;agent plugins&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tools for agent frameworks:&lt;/strong&gt; &lt;code&gt;snaprender-ai-sdk&lt;/code&gt; for the Vercel AI SDK and &lt;code&gt;llama-index-tools-snaprender&lt;/code&gt; for LlamaIndex: &lt;a href="https://snap-render.com/integrations/ai-sdk" rel="noopener noreferrer"&gt;AI SDK integration&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Method notes and limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One machine and one week of model versions. Agent behavior changes with every release, so we will rerun this monthly with the same harness and publish the trend.&lt;/li&gt;
&lt;li&gt;The Claude Code runs used a user-level configuration with installed skills, which is why Sonnet and Opus sometimes asked questions before building.&lt;/li&gt;
&lt;li&gt;"Wrote code" means the agent produced the feature. Runs that stopped early are reported, not hidden.&lt;/li&gt;
&lt;li&gt;Everything needed to rerun the study is in the &lt;a href="https://github.com/User0856/coding-agents-screenshot-study" rel="noopener noreferrer"&gt;public repository&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://snap-render.com/blog/ai-coding-agents-screenshot-study" rel="noopener noreferrer"&gt;SnapRender blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>playwright</category>
      <category>webdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>Add website screenshots and PDFs to a Bubble app</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Tue, 10 Nov 2026 23:35:06 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/add-website-screenshots-and-pdfs-to-a-bubble-app-4051</link>
      <guid>https://dev.to/dennis-ddev/add-website-screenshots-and-pdfs-to-a-bubble-app-4051</guid>
      <description>&lt;p&gt;&lt;em&gt;Written by the SnapRender team. SnapRender is the screenshot service behind the plugin used in this guide; its free plan covers 200 captures a month.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A lot of Bubble apps end up needing a picture of a web page. A directory wants a thumbnail for every listed site. A client portal wants a record of what a landing page looked like on launch day. An internal tool wants to read a competitor's pricing page and summarize it. Bubble has no built-in way to capture a page, and the usual workaround (an API Connector call you set up and debug yourself) takes longer than it should.&lt;/p&gt;

&lt;p&gt;This guide uses the free &lt;strong&gt;SnapRender Screenshot API&lt;/strong&gt; plugin from the Bubble marketplace. It adds four calls to your app:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Call&lt;/th&gt;
&lt;th&gt;Where it shows in Bubble&lt;/th&gt;
&lt;th&gt;What it gives you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Take Screenshot&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Workflow action&lt;/td&gt;
&lt;td&gt;A PNG, JPEG, WebP or PDF file stored in your app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Create Signed Screenshot URL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Data source&lt;/td&gt;
&lt;td&gt;A link that renders a fresh screenshot when opened&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Extract Content&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Workflow action&lt;/td&gt;
&lt;td&gt;The page as Markdown, text, HTML, the main article, links or metadata&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Get Usage&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Data source&lt;/td&gt;
&lt;td&gt;Your plan and captures used this month&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;We will set it up, then build four small features with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: get an API key
&lt;/h2&gt;

&lt;p&gt;Sign up at &lt;a href="https://app.snap-render.com/auth/signup" rel="noopener noreferrer"&gt;app.snap-render.com&lt;/a&gt; with Google, GitHub or email. The key is on your &lt;a href="https://app.snap-render.com/dashboard" rel="noopener noreferrer"&gt;dashboard&lt;/a&gt; right away and starts with &lt;code&gt;sk_live_&lt;/code&gt;. The free plan has 200 captures a month and does not ask for a card.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: install the plugin
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open your app in the Bubble editor and go to the &lt;strong&gt;Plugins&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Add plugins&lt;/strong&gt;, search &lt;strong&gt;SnapRender&lt;/strong&gt;, and install &lt;strong&gt;SnapRender Screenshot API&lt;/strong&gt;. It is free.&lt;/li&gt;
&lt;li&gt;Back in the &lt;strong&gt;Plugins&lt;/strong&gt; tab, select the plugin and paste your key into the &lt;strong&gt;X-API-Key&lt;/strong&gt; field.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is the whole setup. The marketplace page is here: &lt;a href="https://bubble.io/plugin/snaprender-screenshot-api-1794346402613x156659057855299600" rel="noopener noreferrer"&gt;SnapRender Screenshot API on Bubble&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recipe 1: save a screenshot of a URL a user submits
&lt;/h2&gt;

&lt;p&gt;Say your app has a &lt;strong&gt;Site&lt;/strong&gt; data type and users add sites through a form. You want a screenshot saved on each record.&lt;/p&gt;

&lt;p&gt;First, add a field to the data type: &lt;strong&gt;screenshot&lt;/strong&gt;, of type image.&lt;/p&gt;

&lt;p&gt;Then build the workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Event:&lt;/strong&gt; When Button Save is clicked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SnapRender: Take Screenshot.&lt;/strong&gt; Set &lt;strong&gt;url&lt;/strong&gt; to Input URL's value and &lt;strong&gt;format&lt;/strong&gt; to &lt;code&gt;png&lt;/code&gt;. Leave &lt;strong&gt;width&lt;/strong&gt; and &lt;strong&gt;height&lt;/strong&gt; at their defaults (1280 x 800) for a normal desktop view.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data: Make changes to a thing.&lt;/strong&gt; Pick the Site the user just created and set &lt;strong&gt;screenshot&lt;/strong&gt; to &lt;em&gt;Result of step 1&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Take Screenshot returns a file that Bubble stores in your app, so step 3 saves a real file, not a link that might stop working. To show it, add an Image element and set its source to the Site's &lt;strong&gt;screenshot&lt;/strong&gt; field.&lt;/p&gt;

&lt;p&gt;A few fields worth knowing on Take Screenshot:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;full_page&lt;/strong&gt; captures the whole scrollable page instead of the first screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;dark_mode&lt;/strong&gt; asks the page for its dark theme, where it has one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;block_ads&lt;/strong&gt; and &lt;strong&gt;block_cookie_banners&lt;/strong&gt; are on by default, so the screenshot shows the page and not a consent popup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;delay&lt;/strong&gt; (0 to 10,000 ms) waits before the capture, for pages that fill in after they load.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Phone-sized screenshots.&lt;/strong&gt; Version 1.0.0 of the plugin has no device presets. For a typical phone view, set &lt;strong&gt;width&lt;/strong&gt; to 390 and &lt;strong&gt;height&lt;/strong&gt; to 844. Turn on &lt;strong&gt;full_page&lt;/strong&gt; if you want the whole page at that width.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recipe 2: live preview thumbnails in a repeating group
&lt;/h2&gt;

&lt;p&gt;Storing a file is right when you want a fixed record. For a list that should always look current, a signed link is simpler: nothing is stored, and the image is rendered when someone opens the page.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add a &lt;strong&gt;Repeating group&lt;/strong&gt; with type of content Site and data source &lt;em&gt;Do a search for Sites&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Put an &lt;strong&gt;Image element&lt;/strong&gt; in the first cell.&lt;/li&gt;
&lt;li&gt;Set the image's dynamic source to &lt;em&gt;Get data from an external API&lt;/em&gt;, pick &lt;strong&gt;SnapRender: Create Signed Screenshot URL&lt;/strong&gt;, set &lt;strong&gt;url&lt;/strong&gt; to &lt;em&gt;Current cell's Site's url&lt;/em&gt;, and take its &lt;strong&gt;signed_url&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The signed link carries a signature, not your API key, so it is safe to show to visitors. &lt;strong&gt;expires_in&lt;/strong&gt; sets how long it works, from 60 seconds up to 30 days (2,592,000 seconds); the default is one day.&lt;/p&gt;

&lt;p&gt;One thing to plan for: creating the link is free, but every time an image loads, the link is opened and that uses one capture. A repeating group of 50 rows that 100 people view is 5,000 captures. Keep the group paged to a handful of rows, or use Recipe 1 for lists that many people browse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recipe 3: turn a page into Markdown for an AI step
&lt;/h2&gt;

&lt;p&gt;Language models read Markdown far better than raw HTML. Extract Content gives you that in one step.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Event:&lt;/strong&gt; When Button Analyze is clicked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SnapRender: Extract Content.&lt;/strong&gt; Set &lt;strong&gt;url&lt;/strong&gt; to Input URL's value and &lt;strong&gt;type&lt;/strong&gt; to &lt;code&gt;markdown&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API Connector:&lt;/strong&gt; your OpenAI or Claude call, with &lt;em&gt;Result of step 1's content&lt;/em&gt; inside the prompt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data: Make changes to a thing&lt;/strong&gt; to save the answer, or show it in a Text element.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Set up the AI call in Bubble's API Connector as you normally would: your provider key in a private header, and a body parameter for the page text. Two tips:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;type&lt;/strong&gt; &lt;code&gt;article&lt;/code&gt; keeps only the main text of the page and drops menus and footers, which makes for a shorter, cheaper prompt.&lt;/li&gt;
&lt;li&gt;The result also has &lt;strong&gt;wordCount&lt;/strong&gt;. Check it before sending a very long page to a model with a small context window.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Other types are useful too: &lt;code&gt;links&lt;/code&gt; returns every link on the page, &lt;code&gt;metadata&lt;/code&gt; returns the title, description and social preview tags.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recipe 4: a PDF of a page on a button click
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Event:&lt;/strong&gt; When Button Download PDF is clicked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SnapRender: Take Screenshot.&lt;/strong&gt; Set &lt;strong&gt;url&lt;/strong&gt; to the page, &lt;strong&gt;format&lt;/strong&gt; to &lt;code&gt;pdf&lt;/code&gt; and &lt;strong&gt;full_page&lt;/strong&gt; to yes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Navigation: Open an external website&lt;/strong&gt;, with the destination set to &lt;em&gt;Result of step 1&lt;/em&gt;. The PDF opens in a new tab where the user can save it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Because the PDF is a file in your app, you can also keep it with a Make changes to a thing step, for example on an Order or a Report record. If the PDF must match exactly what a visitor saw, including the cookie banner, turn &lt;strong&gt;block_cookie_banners&lt;/strong&gt; and &lt;strong&gt;block_ads&lt;/strong&gt; off.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping an eye on usage
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Get Usage&lt;/strong&gt; is a data source with your &lt;strong&gt;plan&lt;/strong&gt;, the current period's start and end, and &lt;strong&gt;screenshots_used&lt;/strong&gt;, &lt;strong&gt;screenshots_limit&lt;/strong&gt; and &lt;strong&gt;screenshots_remaining&lt;/strong&gt;. Put it in a Text element on an admin page and you will see your month at a glance. It uses no captures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost
&lt;/h2&gt;

&lt;p&gt;The plugin is free. Captures come from your SnapRender plan: the free plan has 200 a month, and paid plans start at $9 for 2,000. Each screenshot, extraction or opened signed link uses one capture. Creating a signed link, checking usage and failed captures use none.&lt;/p&gt;

&lt;p&gt;On the Bubble side, each call counts toward your app's workload units, billed by Bubble.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The page could not be reached:&lt;/strong&gt; check that the URL opens in a private browser window. SnapRender captures public pages only, so pages behind a login or on &lt;code&gt;localhost&lt;/code&gt; will not work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A security check instead of the page&lt;/strong&gt; ("Just a moment..."): the site's firewall does not recognize SnapRender. If it is your own site, one rule lets it through: &lt;a href="https://snap-render.com/docs/allow-snaprender" rel="noopener noreferrer"&gt;allow SnapRender on your site&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A blank or half-loaded screenshot:&lt;/strong&gt; add a &lt;strong&gt;delay&lt;/strong&gt; of 1,000 to 3,000 ms so the page has time to finish.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The setup page, with every call and field listed, is here: &lt;a href="https://snap-render.com/integrations/bubble" rel="noopener noreferrer"&gt;SnapRender for Bubble&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>bubble</category>
      <category>nocode</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Get a Slack alert with a screenshot when a web page changes, with Zapier</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Tue, 10 Nov 2026 00:26:47 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/get-a-slack-alert-with-a-screenshot-when-a-web-page-changes-with-zapier-5dci</link>
      <guid>https://dev.to/dennis-ddev/get-a-slack-alert-with-a-screenshot-when-a-web-page-changes-with-zapier-5dci</guid>
      <description>&lt;p&gt;&lt;em&gt;Written by the SnapRender team. SnapRender is the screenshot service used in this guide; its free plan includes one watched page.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Some pages matter enough that you want to know the day they change: a competitor's pricing page, the terms of a service you depend on, a client's homepage after their developer pushes an update, your own checkout after a deploy. Checking them by hand works for about a week.&lt;/p&gt;

&lt;p&gt;This guide sets up a watcher that does it for you. SnapRender captures the page on a schedule and compares each capture with the one before. When the difference passes a threshold you choose, a two-step Zap posts the new screenshot to Slack, with the page address and how much of it changed.&lt;/p&gt;

&lt;p&gt;The Zap:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;SnapRender: New Page Change Detected&lt;/strong&gt; (instant trigger)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Slack: Send Channel Message&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Two steps means it runs on Zapier's free plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A Slack workspace where you can add apps to a channel.&lt;/li&gt;
&lt;li&gt;A Zapier account (free is fine).&lt;/li&gt;
&lt;li&gt;A SnapRender account. Sign up at &lt;a href="https://app.snap-render.com/auth/signup" rel="noopener noreferrer"&gt;app.snap-render.com&lt;/a&gt; with Google, GitHub or email. Your API key is on the API keys page of the dashboard and starts with &lt;code&gt;sk_live_&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SnapRender for Zapier is in beta while Zapier reviews it for its public app directory. Until it is listed, add it to your Zapier account with the invite link:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://zapier.com/developer/public-invite/249511/3cfcfca23fcb37bb2d8570c7a2a917b2/" rel="noopener noreferrer"&gt;Add SnapRender to Zapier&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open it, sign in to Zapier and accept. SnapRender then shows up in the Zap editor like any other app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: tell SnapRender which page to watch
&lt;/h2&gt;

&lt;p&gt;The trigger fires from SnapRender's scheduled captures, so start there.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the &lt;a href="https://app.snap-render.com/dashboard/schedules" rel="noopener noreferrer"&gt;Schedules page&lt;/a&gt; in your SnapRender dashboard and add a schedule.&lt;/li&gt;
&lt;li&gt;Paste the page URL, for example a pricing page.&lt;/li&gt;
&lt;li&gt;Choose how often to check: every hour, day or week. The free plan holds one schedule, checked daily or weekly; paid plans add hourly checks and more schedules (5 on Starter, 25 on Growth).&lt;/li&gt;
&lt;li&gt;Choose how big a change should count. The presets are &lt;strong&gt;any change&lt;/strong&gt; (even one changed number), &lt;strong&gt;noticeable&lt;/strong&gt; changes such as a new line or banner, and &lt;strong&gt;big changes only&lt;/strong&gt;. You can also set your own threshold as a percentage of the page.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first capture runs within a few minutes. From then on, each capture is compared with the one before, and the dashboard shows both versions side by side with the changed areas outlined.&lt;/p&gt;

&lt;p&gt;A note on the threshold: start with "noticeable" for most pages. "Any change" is right for pages where one number matters (a price, a date), but it also picks up a rotating testimonial or a "posted 3 hours ago" label. Cookie banners and ads are removed before every capture, so they do not trigger false alarms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: the trigger in Zapier
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In Zapier, click &lt;strong&gt;Create&lt;/strong&gt;, then &lt;strong&gt;Zaps&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Choose &lt;strong&gt;SnapRender&lt;/strong&gt; as the trigger app and &lt;strong&gt;New Page Change Detected&lt;/strong&gt; as the event.&lt;/li&gt;
&lt;li&gt;Connect SnapRender by pasting your API key. The connection is named after your plan, for example "Free plan".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schedule&lt;/strong&gt;: pick the schedule you just created, or leave it empty to run for every page you watch.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Test trigger&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If one of your pages has already changed, the test shows that capture. If not (likely, since you just created the schedule), Zapier shows a sample record. Either way you can map the fields:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Page URL&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changed Area (%)&lt;/strong&gt;: how much of the page looks different, for example 4.37&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Change Threshold (%)&lt;/strong&gt;: the threshold you set&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Captured At&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Screenshot Download Link&lt;/strong&gt;: the new screenshot, valid for 1 hour&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Capture ID&lt;/strong&gt;, &lt;strong&gt;Schedule ID&lt;/strong&gt; and &lt;strong&gt;Screenshot SHA-256&lt;/strong&gt;, if you want to keep records&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When you turn the Zap on, SnapRender creates a webhook for it, so the Zap runs the moment a change is detected instead of polling. Turning the Zap off removes the webhook again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: post to Slack
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Add an action: &lt;strong&gt;Slack&lt;/strong&gt;, event &lt;strong&gt;Send Channel Message&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Connect Slack and pick the &lt;strong&gt;Channel&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Message Text&lt;/strong&gt;: something like&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;Page changed: {Page URL} ({Changed Area (%)}% of the page looks different)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;where the parts in braces are the fields you insert from the trigger.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;File&lt;/strong&gt;: map &lt;strong&gt;Screenshot Download Link&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Test step&lt;/strong&gt; and check the channel.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Why the &lt;strong&gt;File&lt;/strong&gt; field and not a link in the message? The download link expires after an hour. When you map it into &lt;strong&gt;File&lt;/strong&gt;, Zapier downloads the screenshot while the step runs and uploads it to Slack, so the image stays in the channel for good. A plain link in the message would stop working an hour later.&lt;/p&gt;

&lt;p&gt;Turn the Zap on. The next time the page changes past your threshold, the channel gets the new screenshot within seconds of the capture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Variations
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Email instead of Slack.&lt;/strong&gt; Use &lt;strong&gt;Gmail: Send Email&lt;/strong&gt; as the action and map &lt;strong&gt;Screenshot Download Link&lt;/strong&gt; into &lt;strong&gt;Attachments&lt;/strong&gt;. (SnapRender can also send a change email by itself: tick the email alert option on the schedule. The Zap version is for when you want a custom message, other recipients or a different app.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A log of every change.&lt;/strong&gt; Add the change to a Google Sheet or Airtable base (a third step, so a paid Zapier plan) with &lt;strong&gt;Captured At&lt;/strong&gt;, &lt;strong&gt;Changed Area (%)&lt;/strong&gt; and &lt;strong&gt;Screenshot SHA-256&lt;/strong&gt;. The SHA-256 lets you show later that a stored screenshot has not been altered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every capture, changed or not.&lt;/strong&gt; Use the &lt;strong&gt;New Scheduled Capture&lt;/strong&gt; trigger instead. It fires after every scheduled capture, which is useful for archiving a page to Google Drive every day. Turn on &lt;strong&gt;Include failed captures&lt;/strong&gt; if you also want to hear when the page was down.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Several pages.&lt;/strong&gt; Add more schedules in SnapRender and leave &lt;strong&gt;Schedule&lt;/strong&gt; empty in the trigger: one Zap covers them all, and &lt;strong&gt;Page URL&lt;/strong&gt; tells you which page changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Each Zap that uses a SnapRender trigger creates its own webhook, and an account holds 5 webhooks. So one account runs up to 5 trigger Zaps at once. Since one Zap can watch every schedule, that is rarely a constraint.&lt;/li&gt;
&lt;li&gt;Each scheduled capture uses one capture from your monthly allowance: a daily schedule about 30 a month, an hourly one about 720. The free plan includes 200 captures a month; paid plans start at $9 for 2,000. Failed captures are not counted.&lt;/li&gt;
&lt;li&gt;SnapRender captures public pages. Pages behind a login, or on a private network, are out of reach. If your own site shows a security check instead of the page, one firewall rule fixes it: &lt;a href="https://snap-render.com/docs/allow-snaprender" rel="noopener noreferrer"&gt;allow SnapRender on your site&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why not just check the HTML?
&lt;/h2&gt;

&lt;p&gt;You can detect changes by fetching a page's HTML and diffing it, and for some pages that works. The trouble is that HTML changes all the time without anything visible changing (tracking scripts, build hashes, session tokens), and visible changes sometimes come from CSS or images the HTML diff never sees. Comparing what the page looks like avoids both problems, and the screenshot doubles as a record of what the page said.&lt;/p&gt;

&lt;p&gt;The setup page, with seven more Zap recipes and every trigger and action explained, is here: &lt;a href="https://snap-render.com/integrations/zapier" rel="noopener noreferrer"&gt;SnapRender for Zapier&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>zapier</category>
      <category>nocode</category>
      <category>slack</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Screenshot every URL in a Google Sheet to Google Drive with Zapier</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Tue, 10 Nov 2026 00:25:48 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/screenshot-every-url-in-a-google-sheet-to-google-drive-with-zapier-plh</link>
      <guid>https://dev.to/dennis-ddev/screenshot-every-url-in-a-google-sheet-to-google-drive-with-zapier-plh</guid>
      <description>&lt;p&gt;&lt;em&gt;Written by the SnapRender team. SnapRender is the screenshot service used in this guide; its free plan covers 200 screenshots a month.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Plenty of jobs start with a list of URLs in a spreadsheet: a site audit, a list of client homepages, competitor landing pages, links someone wants archived before they change. The tedious part is opening each one, taking a screenshot, naming the file and dragging it into the right folder.&lt;/p&gt;

&lt;p&gt;This guide builds a Zap that does it for you. Add a URL to the sheet, and a minute or two later a screenshot of that page is sitting in a Google Drive folder, named after the row.&lt;/p&gt;

&lt;p&gt;The Zap has three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Google Sheets: New Spreadsheet Row&lt;/strong&gt; (the trigger)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SnapRender: Take Screenshot&lt;/strong&gt; (renders the page and returns a file)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Drive: Upload File&lt;/strong&gt; (saves the file)&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A Google account with Sheets and Drive.&lt;/li&gt;
&lt;li&gt;A Zapier account. Three-step Zaps need a paid Zapier plan; Zapier's free plan runs two-step Zaps only. (If you want a free two-step version, see the end of this post.)&lt;/li&gt;
&lt;li&gt;A SnapRender account and API key. Sign up at &lt;a href="https://app.snap-render.com/auth/signup" rel="noopener noreferrer"&gt;app.snap-render.com&lt;/a&gt; with Google, GitHub or email. The key is on the API keys page of the dashboard and starts with &lt;code&gt;sk_live_&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SnapRender for Zapier is in beta while Zapier reviews it for its public app directory. Until it is listed, you add it to your Zapier account with this invite link:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://zapier.com/developer/public-invite/249511/3cfcfca23fcb37bb2d8570c7a2a917b2/" rel="noopener noreferrer"&gt;Add SnapRender to Zapier&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open it, sign in to Zapier and accept. SnapRender then shows up when you search for it in the Zap editor, like any other app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: set up the sheet
&lt;/h2&gt;

&lt;p&gt;Create a sheet with a header row. Two columns are enough:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;URL&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;acme-home&lt;/td&gt;
&lt;td&gt;&lt;code&gt;https://example.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;acme-pricing&lt;/td&gt;
&lt;td&gt;&lt;code&gt;https://example.com/pricing&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;strong&gt;Name&lt;/strong&gt; column becomes the file name in Drive. Zapier needs the header row to know what the columns are called, so do not skip it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: the trigger
&lt;/h2&gt;

&lt;p&gt;In Zapier, click &lt;strong&gt;Create&lt;/strong&gt;, then &lt;strong&gt;Zaps&lt;/strong&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;For the trigger, choose &lt;strong&gt;Google Sheets&lt;/strong&gt; and the event &lt;strong&gt;New Spreadsheet Row&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Connect your Google account.&lt;/li&gt;
&lt;li&gt;Pick the &lt;strong&gt;Drive&lt;/strong&gt;, &lt;strong&gt;Spreadsheet&lt;/strong&gt; and &lt;strong&gt;Worksheet&lt;/strong&gt; you just made.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Test trigger&lt;/strong&gt;. Zapier pulls in one of your rows so you can map its columns in the next steps.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Zapier checks the sheet for new rows every few minutes; how often depends on your Zapier plan. Add rows at the bottom of the sheet, since that is where the trigger looks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: take the screenshot
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Add an action, search for &lt;strong&gt;SnapRender&lt;/strong&gt; and choose &lt;strong&gt;Take Screenshot&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Zapier asks you to connect SnapRender. Paste your API key. The connection is named after your plan (for example "Free plan"), which helps if you ever connect more than one account.&lt;/li&gt;
&lt;li&gt;Fill in the fields:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Page URL&lt;/strong&gt;: map the &lt;strong&gt;URL&lt;/strong&gt; column from step 1.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Format&lt;/strong&gt;: PNG keeps text sharp. Choose PDF if you want a printable document, or JPEG or WebP for smaller files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full page&lt;/strong&gt;: Yes, if you want the whole scrollable page rather than just the first screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File name&lt;/strong&gt;: map the &lt;strong&gt;Name&lt;/strong&gt; column. Leave it empty for an automatic name.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Leave the rest at the defaults for now. Ads and cookie banners are removed before the capture by default (&lt;strong&gt;Block ads&lt;/strong&gt; and &lt;strong&gt;Hide cookie banners&lt;/strong&gt; are both on), and the window is a 1280 x 800 desktop.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Test step&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The test returns a &lt;strong&gt;File&lt;/strong&gt; field plus details such as &lt;strong&gt;Size (bytes)&lt;/strong&gt;, &lt;strong&gt;Page URL&lt;/strong&gt; and &lt;strong&gt;Captures Remaining This Month&lt;/strong&gt;. The &lt;strong&gt;File&lt;/strong&gt; field is what the next step uploads.&lt;/p&gt;

&lt;p&gt;A few options worth knowing about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Device&lt;/strong&gt; renders the page as an iPhone 14, iPhone 15 Pro, Pixel 7, iPad Pro or MacBook Pro shows it. Useful for checking mobile layouts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dark mode&lt;/strong&gt; asks the page for its dark theme, if it has one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hide elements&lt;/strong&gt; takes CSS selectors (comma separated) for things you want gone, such as a chat widget.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delay (ms)&lt;/strong&gt; waits a little after the page loads, for animations or content that loads late. Keep it short: Zapier stops any step after 30 seconds, and Take Screenshot gives the page 25 of those.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: upload to Google Drive
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Add another action: &lt;strong&gt;Google Drive&lt;/strong&gt;, event &lt;strong&gt;Upload File&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Connect your Google account and pick the &lt;strong&gt;Drive&lt;/strong&gt; and &lt;strong&gt;Folder&lt;/strong&gt; the screenshots should go to.&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;File&lt;/strong&gt;, map the &lt;strong&gt;File&lt;/strong&gt; output of the SnapRender step.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Test step&lt;/strong&gt; and check the folder. You should see a file named after your row.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Turn the Zap on, add a new row to the sheet, and the screenshot appears in Drive a few minutes later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Variations
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A PDF archive instead of images.&lt;/strong&gt; Set &lt;strong&gt;Format&lt;/strong&gt; to PDF and &lt;strong&gt;Full page&lt;/strong&gt; to Yes. Each PDF keeps the page address in its document properties, which helps when you look at the file months later and wonder where it came from. (That is the &lt;strong&gt;Embed capture details&lt;/strong&gt; option, on by default.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phone screenshots for a mobile audit.&lt;/strong&gt; Set &lt;strong&gt;Device&lt;/strong&gt; to iPhone 15 Pro. The device sets its own screen size, so &lt;strong&gt;Width (px)&lt;/strong&gt; and &lt;strong&gt;Height (px)&lt;/strong&gt; are ignored.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Many URLs at once.&lt;/strong&gt; If you paste 30 rows at once, the Zap runs 30 times, which is fine. If you would rather send one job for a whole list, use the &lt;strong&gt;Batch Screenshots&lt;/strong&gt; action instead: it takes up to 50 URLs, one per line, and returns a download link for each page. Those links stay valid for 24 hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  A free two-step version
&lt;/h2&gt;

&lt;p&gt;If your list of pages is short and does not change often, you can skip the sheet and let SnapRender do the scheduling. Add each page on the &lt;a href="https://app.snap-render.com/dashboard/schedules" rel="noopener noreferrer"&gt;Schedules page&lt;/a&gt; of your SnapRender dashboard (every day or every week), then build a two-step Zap, which runs on Zapier's free plan:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;SnapRender: New Scheduled Capture&lt;/strong&gt; (leave &lt;strong&gt;Schedule&lt;/strong&gt; empty to run for every page you watch)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Drive: Upload File&lt;/strong&gt;, with &lt;strong&gt;File&lt;/strong&gt; mapped to &lt;strong&gt;Screenshot Download Link&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That download link expires after an hour, but it does not matter here: Zapier downloads the file when the step runs. The free SnapRender plan holds 1 daily or weekly schedule; Starter holds 5 and adds hourly captures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost
&lt;/h2&gt;

&lt;p&gt;On the SnapRender side, each screenshot uses one capture from your monthly allowance. The free plan has 200 a month; paid plans start at $9 for 2,000. Failed captures are not counted. If you run out, the step stops with a message that says so and the Zap stays on, ready for the next month.&lt;/p&gt;

&lt;p&gt;On the Zapier side, each step that runs counts as a Zapier task, billed by Zapier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TARGET_UNREACHABLE&lt;/strong&gt;: the page could not be reached. Check that the URL opens in a private browser window. SnapRender captures public pages only, so anything behind a login or on &lt;code&gt;localhost&lt;/code&gt; will not work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CLIENT_TIMEOUT&lt;/strong&gt;: the page took longer than Zapier allows. Lower &lt;strong&gt;Delay (ms)&lt;/strong&gt;, or turn off &lt;strong&gt;Full page&lt;/strong&gt; for very long pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A security check instead of the page&lt;/strong&gt; ("Just a moment..."): the site's firewall does not recognize SnapRender. If it is your own site, one rule lets SnapRender through: &lt;a href="https://snap-render.com/docs/allow-snaprender" rel="noopener noreferrer"&gt;allow SnapRender on your site&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The setup page, with seven more Zap recipes and every trigger and action explained, is here: &lt;a href="https://snap-render.com/integrations/zapier" rel="noopener noreferrer"&gt;SnapRender for Zapier&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>zapier</category>
      <category>nocode</category>
      <category>automation</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Capturing web pages inside Harvey: a custom MCP connector for screenshots and PDFs</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Mon, 09 Nov 2026 21:14:29 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/capturing-web-pages-inside-harvey-a-custom-mcp-connector-for-screenshots-and-pdfs-1l5f</link>
      <guid>https://dev.to/dennis-ddev/capturing-web-pages-inside-harvey-a-custom-mcp-connector-for-screenshots-and-pdfs-1l5f</guid>
      <description>&lt;p&gt;&lt;em&gt;Written by the SnapRender team. SnapRender is the capture service used in this guide; the setup works on its free plan.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A lot of legal work starts with a web page. A competitor's advertising claim, a platform's terms of service on the day a client signed up, a listing that infringes a trademark, a privacy policy that changed last month. The usual routine is to open the page, take screenshots by hand, print to PDF, rename the files and attach them to the matter, then go back to Harvey to ask questions about what the page says.&lt;/p&gt;

&lt;p&gt;Harvey can now call external tools through custom MCP connectors. If one of those tools captures web pages, Harvey can open a URL, keep the capture as a file in the conversation, and work with the page text directly. This guide sets that up and shows the prompts that make it useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the connector does
&lt;/h2&gt;

&lt;p&gt;With SnapRender connected, Harvey can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;capture any public URL as a &lt;strong&gt;PDF&lt;/strong&gt; or as a PNG, JPEG or WebP image&lt;/li&gt;
&lt;li&gt;capture the &lt;strong&gt;full page&lt;/strong&gt;, not just the visible part, so a long terms page arrives in one file&lt;/li&gt;
&lt;li&gt;capture the page &lt;strong&gt;as a phone sees it&lt;/strong&gt; (iPhone, Pixel, iPad profiles), which matters when a claim or disclosure only appears on mobile&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;read the page as text&lt;/strong&gt;, so Harvey can quote and analyze what the page says&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cookie banners are removed before the capture, so it shows the content rather than a consent dialog.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup: one custom connector, OAuth, nothing to install
&lt;/h2&gt;

&lt;p&gt;Harvey's custom connectors talk to remote MCP servers over HTTPS with OAuth. Harvey registers itself with the server automatically, so there is no client ID or secret to copy.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In Harvey, add a custom MCP connector with these settings:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   Name:            SnapRender
   Server URL:      https://app.snap-render.com/mcp
   Authentication:  OAuth
   Client ID:       (leave empty)
   Client secret:   (leave empty)
   Scope:           (leave empty)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you do not see the option to add custom connectors, a Harvey workspace admin needs to enable them for you.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;Connect&lt;/strong&gt;, sign in to SnapRender and click &lt;strong&gt;Allow&lt;/strong&gt;. A free account is enough to start.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In Harvey Assistant, turn SnapRender on under &lt;strong&gt;Sources&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The one thing to remember: ask for a file
&lt;/h2&gt;

&lt;p&gt;Harvey keeps files that connectors return, but it does not display inline images from tool results. If you simply ask for "a screenshot", the image is dropped and you get a description at best.&lt;/p&gt;

&lt;p&gt;So ask for the capture &lt;strong&gt;as a file&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Take a full-page screenshot of &lt;a href="https://example.com/terms" rel="noopener noreferrer"&gt;https://example.com/terms&lt;/a&gt; as a PDF file.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;SnapRender then returns the capture as an attached file, and it stays in the conversation like any document you uploaded.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prompts that work well
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Terms or policy on a given day.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Take a full-page screenshot of &lt;a href="https://example.com/terms" rel="noopener noreferrer"&gt;https://example.com/terms&lt;/a&gt; as a PDF file and note today's date. Then summarize the limitation of liability clause.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Advertising claims, desktop and mobile.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Capture &lt;a href="https://example.com/product" rel="noopener noreferrer"&gt;https://example.com/product&lt;/a&gt; on desktop and on iPhone as files, then list every performance or pricing claim on the page and where it appears.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Reading without capturing.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Read &lt;a href="https://example.com/privacy" rel="noopener noreferrer"&gt;https://example.com/privacy&lt;/a&gt; as text and list what it says about data retention and transfers outside the EU.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Comparing versions.&lt;/strong&gt; Capture a page today and again next week, then ask Harvey to compare the two files. For pages you need to watch continuously, SnapRender can also capture on a schedule and alert you when a page changes, set up from its dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;p&gt;It is worth being precise about the limits, especially for evidence work.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Public pages only.&lt;/strong&gt; Captures are made from SnapRender's servers, so intranet pages and pages behind a login are out of reach.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is a capture tool, not a certification service.&lt;/strong&gt; A capture records what the page showed when it was rendered. If a matter needs formal evidence with chain of custody, use the capture alongside your firm's procedures or a dedicated web evidence provider.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy.&lt;/strong&gt; SnapRender only receives the URLs you ask it to capture. It never sees your Harvey documents or the rest of the conversation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Cost
&lt;/h2&gt;

&lt;p&gt;The free plan includes 200 captures a month. Every screenshot or page read uses one capture, and failed captures are not counted. Paid plans start at $9 a month for higher volume.&lt;/p&gt;

&lt;p&gt;The full setup page, with an FAQ, is here: &lt;a href="https://snap-render.com/ai-connectors/harvey" rel="noopener noreferrer"&gt;SnapRender for Harvey&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>legaltech</category>
      <category>ai</category>
      <category>mcp</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Give the Google Antigravity agent eyes: screenshots and page reading over MCP</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Mon, 09 Nov 2026 21:13:17 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/give-the-google-antigravity-agent-eyes-screenshots-and-page-reading-over-mcp-dob</link>
      <guid>https://dev.to/dennis-ddev/give-the-google-antigravity-agent-eyes-screenshots-and-page-reading-over-mcp-dob</guid>
      <description>&lt;p&gt;&lt;em&gt;Written by the SnapRender team. SnapRender is the screenshot API used in this guide; the setup works on its free plan.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Google Antigravity is good at writing front-end code. What it cannot do out of the box is look at the result. It edits a component, tells you it fixed the layout, and has no way to check what the page actually looks like on a phone.&lt;/p&gt;

&lt;p&gt;MCP closes that gap. Antigravity can call tools from any MCP server you add, so if one of those tools returns a screenshot, the agent can open a URL, look at the rendered page and reason about what it sees. This guide adds one such server, explains the two Antigravity details that trip people up, and ends with prompts that are worth trying.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you get
&lt;/h2&gt;

&lt;p&gt;After the setup below, the Antigravity agent can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;take a screenshot of any public URL, full page or just the viewport, on desktop or on a phone profile (iPhone, Pixel, iPad)&lt;/li&gt;
&lt;li&gt;render a PDF of a page&lt;/li&gt;
&lt;li&gt;read a page as clean markdown, which is often more useful than the image when the agent needs the text of a docs page&lt;/li&gt;
&lt;li&gt;capture up to 50 URLs in one batch&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cookie banners and ads are removed before the capture, so the agent sees the page the way a visitor does instead of a consent wall.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: add the server to mcp_config.json
&lt;/h2&gt;

&lt;p&gt;Antigravity (the App, the IDE and the CLI) reads MCP servers from the same file:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;~/.gemini/config/mcp_config.json&lt;/code&gt; for all projects&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.agents/mcp_config.json&lt;/code&gt; for one workspace&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The quickest way to open it: in the App, go to Customizations, Installed, and click Copy Config File Path next to MCP Servers. In the IDE, open the "..." menu at the top of the agent panel, then MCP Servers, Manage MCP Servers, View raw config.&lt;/p&gt;

&lt;p&gt;Add this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"snaprender"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"serverUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://app.snap-render.com/mcp"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The first detail that trips people up:&lt;/strong&gt; the field is &lt;code&gt;serverUrl&lt;/code&gt; (&lt;code&gt;url&lt;/code&gt; also works). Gemini CLI uses &lt;code&gt;httpUrl&lt;/code&gt; for the same thing, and Antigravity does not accept it. If you copied a Gemini CLI snippet and the server never shows up, that is why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: sign in
&lt;/h2&gt;

&lt;p&gt;Under MCP Servers, click &lt;strong&gt;Authenticate&lt;/strong&gt; next to snaprender. A browser window opens; sign in (a free account is enough) and click Allow. Antigravity then shows an authorization code. Copy it, paste it into "Enter authorization code" and click Submit.&lt;/p&gt;

&lt;p&gt;If you would rather use an API key than the browser sign-in, send it as a header instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"snaprender"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"serverUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://app.snap-render.com/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bearer YOUR_API_KEY"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key sits in the file as plain text, so keep that file out of version control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: the second detail, Ask mode
&lt;/h2&gt;

&lt;p&gt;Until you allow them, MCP tools run in Ask mode: the agent stops and asks before every single call. That is a sensible default, but it gets old quickly when the agent wants to take six screenshots in a row.&lt;/p&gt;

&lt;p&gt;You can allow the whole server with a policy of &lt;code&gt;mcp(snaprender/*)&lt;/code&gt;. If you also want the screenshot tool registered on every turn (Antigravity loads MCP tools lazily by default), add this inside the snaprender entry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"tools"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"take_screenshot"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"eager"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Check that it works
&lt;/h2&gt;

&lt;p&gt;snaprender should show as connected under MCP Servers (or in &lt;code&gt;/mcp&lt;/code&gt; in the CLI). Then ask the agent something simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Take a screenshot of &lt;a href="https://example.com" rel="noopener noreferrer"&gt;https://example.com&lt;/a&gt; and describe what you see.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you get a description of the page back, you are done.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prompts worth trying
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Mobile check after a change.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Screenshot &lt;a href="https://your-preview-url.vercel.app" rel="noopener noreferrer"&gt;https://your-preview-url.vercel.app&lt;/a&gt; on desktop and on iPhone 15 Pro and list what breaks on mobile.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent gets two images and compares them. It is surprisingly good at spotting overflowing tables, buttons pushed off screen and text that wraps badly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Design review against a description.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Take a full-page screenshot of the deployed preview and check it against the design I described earlier. List every difference.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Reading docs instead of guessing.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Read &lt;a href="https://example.com/docs/api" rel="noopener noreferrer"&gt;https://example.com/docs/api&lt;/a&gt; as markdown and write a typed client for the endpoints it documents.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This one does not need an image at all. Markdown extraction gives the agent the actual docs text instead of whatever it remembers from training.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Competitor or reference pages.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Screenshot the pricing pages of these three sites and summarize how each one structures its plans.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  One limit to know about
&lt;/h2&gt;

&lt;p&gt;The screenshots are taken on SnapRender's servers, not on your machine. That means &lt;code&gt;localhost&lt;/code&gt; and private network addresses are out of reach. For local work, point the agent at a public preview deployment (Vercel, Netlify, Cloudflare Pages and similar all give you one per branch) or a tunnel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost
&lt;/h2&gt;

&lt;p&gt;The free plan includes 200 captures a month, which is plenty for checking your own work. Each screenshot or page read uses one capture; failed captures are not counted.&lt;/p&gt;

&lt;p&gt;The full setup page, including the local &lt;code&gt;npx&lt;/code&gt; option and an FAQ, is here: &lt;a href="https://snap-render.com/ai-connectors/antigravity" rel="noopener noreferrer"&gt;SnapRender for Google Antigravity&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>antigravity</category>
      <category>mcp</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Four things that break when you screenshot websites in production</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Sat, 07 Nov 2026 16:30:21 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/four-things-that-break-when-you-screenshot-websites-in-production-45m9</link>
      <guid>https://dev.to/dennis-ddev/four-things-that-break-when-you-screenshot-websites-in-production-45m9</guid>
      <description>&lt;p&gt;Every team that needs website screenshots eventually writes the same code: spin up headless Chrome, wait for the page, take a picture, hope it looks right. It works in development. In production it becomes one of the most annoying pieces of infrastructure you own.&lt;/p&gt;

&lt;p&gt;Here is what actually breaks, and what I ended up doing about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The page is never ready when you think it is
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;waitUntil: 'networkidle'&lt;/code&gt; is a guess. Single page apps fetch data after the first paint, images load lazily as they scroll into view, and fonts swap a second later. You get a screenshot of a skeleton loader.&lt;/p&gt;

&lt;p&gt;What works better is a combination: wait for network idle, then wait for a specific selector, then wait a fixed extra beat for fonts and images inside the viewport. Chromium also exposes &lt;code&gt;Page.captureScreenshot&lt;/code&gt; with &lt;code&gt;captureBeyondViewport&lt;/code&gt;, which avoids scrolling tricks that trigger more lazy loading.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Cookie banners ruin half the captures
&lt;/h2&gt;

&lt;p&gt;Every second site shows a consent wall. A screenshot with a giant modal covering the content is useless for a thumbnail, a link preview or a PDF report.&lt;/p&gt;

&lt;p&gt;The reliable approach is to inject a small CSS and JS payload before capture: hide known consent containers by common selectors and attributes, and block the requests from known consent and ad domains so the modal never renders in the first place. Blocking at the network layer is far more stable than clicking "Accept" with a selector that changes every month.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Memory leaks end your process at 3am
&lt;/h2&gt;

&lt;p&gt;A Chromium instance that renders thousands of pages will grow until the kernel kills it. The fixes are boring but necessary:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;one browser process, many short lived contexts&lt;/li&gt;
&lt;li&gt;a hard cap on concurrent pages&lt;/li&gt;
&lt;li&gt;recycle the browser after N captures&lt;/li&gt;
&lt;li&gt;per request timeouts that actually close the page&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. The API surface is the easy part
&lt;/h2&gt;

&lt;p&gt;Once capture works, the product questions start. Do you return the image inline or a URL? How do you handle a 40 second page? What about 500 URLs in one request?&lt;/p&gt;

&lt;p&gt;Batch endpoints and signed webhooks solve the second and third. Signed URLs solve the first without leaking your API key into HTML.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built instead
&lt;/h2&gt;

&lt;p&gt;I got tired of maintaining this per project, so I wrapped it into a small API: &lt;a href="https://snap-render.com" rel="noopener noreferrer"&gt;SnapRender&lt;/a&gt;. One request turns a URL, raw HTML or Markdown into a PNG, JPEG, WebP or PDF, rendered in real Chrome, with device presets, full page capture, ad and cookie banner removal, and content extraction to Markdown.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://app.snap-render.com/v1/screenshot?url=https://example.com&amp;amp;format=png&amp;amp;full_page=true"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: YOUR_API_KEY"&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; example.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The free plan is 200 captures a month with no card, and every feature is on every plan. There is also a hosted MCP server if you want an agent to take screenshots and read pages directly.&lt;/p&gt;

&lt;p&gt;If you are still running your own fleet, the four problems above are the ones to plan for. If you would rather not, that is the problem I am solving.&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>node</category>
    </item>
    <item>
      <title>How to Set Up Claude Desktop with MCP Servers (2026 Guide)</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Sat, 13 Jun 2026 00:44:25 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/how-to-set-up-claude-desktop-with-mcp-servers-2026-guide-2fc7</link>
      <guid>https://dev.to/dennis-ddev/how-to-set-up-claude-desktop-with-mcp-servers-2026-guide-2fc7</guid>
      <description>&lt;p&gt;Most developers install Claude Desktop, use it as a chat window, and stop there. That is about 20% of what the app can do. The other 80% opens up once you connect MCP servers: small programs that give Claude direct access to your files, GitHub repos, databases, web search, and visual tools like screenshot APIs.&lt;/p&gt;

&lt;p&gt;This guide walks you through the full setup, from installation to a working MCP stack you can use on real projects. By the end, you will have Claude Desktop connected to the tools you actually use, instead of copy-pasting everything into a chat box.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you will learn:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to install Claude Desktop on macOS, Windows, and (sort of) Linux&lt;/li&gt;
&lt;li&gt;Where the MCP config file lives and how to edit it&lt;/li&gt;
&lt;li&gt;What MCP servers are and how they work in practice&lt;/li&gt;
&lt;li&gt;The 8 most useful MCP servers for developers, with copy-pasteable config snippets&lt;/li&gt;
&lt;li&gt;How to use Desktop Extensions for one-click installation&lt;/li&gt;
&lt;li&gt;How to connect to remote MCP servers with OAuth&lt;/li&gt;
&lt;li&gt;How to troubleshoot the most common setup problems&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Already have Claude Desktop installed?&lt;/strong&gt; Skip to Section 4: Setting Up Your First MCP Server for the config snippets.&lt;/p&gt;




&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Installation&lt;/li&gt;
&lt;li&gt;First-Time Configuration&lt;/li&gt;
&lt;li&gt;What Are MCP Servers?&lt;/li&gt;
&lt;li&gt;Setting Up Your First MCP Server&lt;/li&gt;
&lt;li&gt;The 8 Best MCP Servers for Developers&lt;/li&gt;
&lt;li&gt;Desktop Extensions: One-Click Installation&lt;/li&gt;
&lt;li&gt;Remote MCP Servers&lt;/li&gt;
&lt;li&gt;Troubleshooting Claude Desktop MCP Issues&lt;/li&gt;
&lt;li&gt;Recommended Starter Stack&lt;/li&gt;
&lt;li&gt;FAQ: People Also Ask&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  1. How to Install Claude Desktop
&lt;/h2&gt;

&lt;p&gt;Claude Desktop is Anthropic's native app for macOS and Windows. Download it from &lt;a href="https://claude.com/download" rel="noopener noreferrer"&gt;claude.com/download&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;macOS:&lt;/strong&gt; Download the &lt;code&gt;.dmg&lt;/code&gt; file, drag Claude to your Applications folder, and launch it. Both Intel and Apple Silicon Macs are supported natively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Windows:&lt;/strong&gt; Download the installer for your architecture (x64 or ARM64). Run the &lt;code&gt;.exe&lt;/code&gt; and follow the prompts. Claude will appear in your Start menu.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linux:&lt;/strong&gt; Anthropic does not ship an official Linux build. Community packages exist through projects like &lt;a href="https://github.com/aaddrick/claude-desktop-debian" rel="noopener noreferrer"&gt;claude-desktop-debian&lt;/a&gt;, which repackages the Windows build into &lt;code&gt;.deb&lt;/code&gt; and &lt;code&gt;.AppImage&lt;/code&gt; formats that run without Wine. These are not officially supported. If you are on Linux, &lt;a href="https://code.claude.com/" rel="noopener noreferrer"&gt;Claude Code&lt;/a&gt; (the CLI) has full MCP support and is the better option.&lt;/p&gt;

&lt;p&gt;After installation, sign in with your Anthropic account. You need at least a Pro subscription ($20/month) for full usage, though a free tier exists with limited messages per day.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Claude Desktop First-Time Configuration
&lt;/h2&gt;

&lt;p&gt;Once signed in, click your profile icon in the bottom-left corner and open &lt;strong&gt;Settings&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Model selection:&lt;/strong&gt; Choose your default model. Claude Sonnet 4.6 is the recommended daily driver for development work: fast, capable, and efficient on your quota. Claude Opus 4.7 is the most capable model but uses more quota per message. You can switch models per-conversation at any time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Privacy:&lt;/strong&gt; Under "Data," review what Anthropic stores. If you work with sensitive code, disable conversation history storage. Note that this means you lose access to past conversations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Theme:&lt;/strong&gt; Dark or light. Picks up your system setting by default.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer settings:&lt;/strong&gt; This is where MCP configuration lives. Go to &lt;strong&gt;Settings &amp;gt; Developer&lt;/strong&gt; and click "Edit Config." This opens &lt;code&gt;claude_desktop_config.json&lt;/code&gt; in your default editor and creates the file if it does not exist.&lt;/p&gt;

&lt;p&gt;The config file location varies by OS:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;macOS:&lt;/strong&gt; &lt;code&gt;~/Library/Application Support/Claude/claude_desktop_config.json&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; &lt;code&gt;%APPDATA%\Claude\claude_desktop_config.json&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux:&lt;/strong&gt; &lt;code&gt;~/.config/Claude/claude_desktop_config.json&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This JSON file is where you define every local MCP server Claude should connect to. The next sections show you exactly what to put in it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note for Windows MSIX installs:&lt;/strong&gt; If you installed Claude Desktop via the Microsoft Store or WinGet, the config file may be at &lt;code&gt;C:\Users\YourName\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\&lt;/code&gt;. Use the Settings &amp;gt; Developer &amp;gt; Edit Config shortcut to open the correct file automatically.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  3. What Are MCP Servers and Why Do They Matter?
&lt;/h2&gt;

&lt;p&gt;MCP (Model Context Protocol) is an open standard that lets AI applications connect to external data sources and tools through a single, consistent interface. Think of it as USB for AI: one protocol, many devices.&lt;/p&gt;

&lt;p&gt;An MCP server is a small program that runs locally (or remotely) and exposes "tools" to Claude. When you ask Claude to do something that requires an external tool, like searching GitHub or taking a screenshot of a URL, it calls the appropriate MCP server behind the scenes. You approve the tool call, the server executes it, and the result flows back into the conversation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why this matters for developers:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;File access:&lt;/strong&gt; Claude can read and write your project files instead of you copy-pasting code into the chat&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live web search:&lt;/strong&gt; Claude can look up current documentation instead of relying on training data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub integration:&lt;/strong&gt; Claude can review PRs, create issues, and search code directly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database queries:&lt;/strong&gt; Claude can help debug data issues by querying your database&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visual capture:&lt;/strong&gt; Claude can see what websites look like through screenshot APIs, catching layout bugs a text-only model would miss&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without MCP servers, Claude is limited to the text you paste into the chat window. With them, it becomes a connected assistant that can reach into your actual development environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Setting Up Your First MCP Server
&lt;/h2&gt;

&lt;p&gt;Let's start with the GitHub MCP server since most developers already have a GitHub account and a personal access token.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt; &lt;a href="https://www.docker.com/products/docker-desktop/" rel="noopener noreferrer"&gt;Docker Desktop&lt;/a&gt; must be installed and running. The official GitHub MCP server is distributed as a Docker image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Create a GitHub Personal Access Token at &lt;a href="https://github.com/settings/tokens" rel="noopener noreferrer"&gt;github.com/settings/tokens&lt;/a&gt;. Select "Fine-grained token," grant &lt;code&gt;repo&lt;/code&gt; and &lt;code&gt;read:org&lt;/code&gt; scopes, and copy the token.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Open your &lt;code&gt;claude_desktop_config.json&lt;/code&gt; (Settings &amp;gt; Developer &amp;gt; Edit Config) and add the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"github"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"docker"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"run"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"-i"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"--rm"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"-e"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"GITHUB_PERSONAL_ACCESS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"ghcr.io/github/github-mcp-server"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"GITHUB_PERSONAL_ACCESS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ghp_your_token_here"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Quit Claude Desktop completely (Cmd+Q on macOS, not just closing the window) and relaunch it. Claude needs a full restart to pick up config changes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Open a new conversation. You should see a tools indicator (a small hammer or slider icon) near the message input. Click it to confirm the GitHub tools are listed.&lt;/p&gt;

&lt;p&gt;Try it out: ask Claude "What are the open issues in my-org/my-repo?" and watch it call the GitHub MCP server to fetch the answer.&lt;/p&gt;

&lt;p&gt;If the tools do not appear, check Section 8: Troubleshooting. The most common issue is malformed JSON in the config file.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The 8 Best MCP Servers for Developers
&lt;/h2&gt;

&lt;p&gt;Here are eight MCP servers that cover the most common developer workflows. You can add all of them to a single &lt;code&gt;claude_desktop_config.json&lt;/code&gt; file. The full combined config is at the end of this section.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.1 GitHub MCP Server
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Full GitHub integration. Search repos, read files, create and review PRs, manage issues, browse commits. This is the official server maintained by GitHub.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you want it:&lt;/strong&gt; Code review, issue triage, and repo exploration happen directly in the conversation, without switching to a browser.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"github"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"docker"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"run"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"-i"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"--rm"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"-e"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"GITHUB_PERSONAL_ACCESS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"ghcr.io/github/github-mcp-server"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"GITHUB_PERSONAL_ACCESS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ghp_your_token_here"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setup:&lt;/strong&gt; Requires &lt;a href="https://www.docker.com/products/docker-desktop/" rel="noopener noreferrer"&gt;Docker Desktop&lt;/a&gt; and a &lt;a href="https://github.com/settings/tokens" rel="noopener noreferrer"&gt;GitHub PAT&lt;/a&gt; with &lt;code&gt;repo&lt;/code&gt; and &lt;code&gt;read:org&lt;/code&gt; scopes.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.2 Brave Search
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Web search through the Brave Search API. Claude can look up current documentation, find Stack Overflow answers, or research any topic in real time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you want it:&lt;/strong&gt; Claude's training data has a cutoff. When you need information about a library released last month or a bug reported last week, Brave Search fills the gap.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"brave-search"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@modelcontextprotocol/server-brave-search"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"BRAVE_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"your_brave_api_key_here"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setup:&lt;/strong&gt; Sign up at &lt;a href="https://brave.com/search/api/" rel="noopener noreferrer"&gt;brave.com/search/api&lt;/a&gt; and generate an API key. Brave provides $5 in monthly credits (approximately 1,000 queries) on every account; usage beyond that is billed per query.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.3 Context7
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Serves up-to-date, version-specific library documentation directly to Claude. Instead of generating code based on stale training data, Claude fetches the exact docs for the version you are using.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you want it:&lt;/strong&gt; If you have ever had Claude generate code using a deprecated API because it was trained on older docs, Context7 fixes that problem.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@upstash/context7-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setup:&lt;/strong&gt; No API key required for basic usage. For higher rate limits, create a free key at &lt;a href="https://context7.com/dashboard" rel="noopener noreferrer"&gt;context7.com/dashboard&lt;/a&gt; and set &lt;code&gt;CONTEXT7_API_KEY&lt;/code&gt; in the &lt;code&gt;env&lt;/code&gt; block. Requires Node.js 18+.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.4 Filesystem
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Gives Claude read and write access to directories on your machine. It can list files, read contents, search by name or content, and write changes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you want it:&lt;/strong&gt; Instead of copy-pasting files into the chat, point Claude at your project directory and let it read what it needs. Useful for code reviews, refactoring, and generating new files in the right location.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"filesystem"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@modelcontextprotocol/server-filesystem"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"/Users/you/projects"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"/Users/you/Documents"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setup:&lt;/strong&gt; No API key needed. The paths in &lt;code&gt;args&lt;/code&gt; (after the package name) define which directories Claude can access. Add or remove paths as needed. Claude will ask for your approval before any file operation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security note:&lt;/strong&gt; Only expose directories you are comfortable with Claude reading. Do not point it at your home directory root or any folder containing secrets like &lt;code&gt;.env&lt;/code&gt; files or SSH keys.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.5 Playwright
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Browser automation. Claude can navigate to pages, click elements, fill forms, take screenshots, and extract content from rendered web pages. This is Microsoft's official MCP server built on the Playwright testing framework.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you want it:&lt;/strong&gt; Testing web apps interactively. Claude can walk through a user flow, fill out a form, click submit, and tell you what happened. Useful for debugging frontend issues or verifying that a deploy worked.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"playwright"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@playwright/mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setup:&lt;/strong&gt; Requires Node.js 18+. On first run, you may need to install browser binaries with &lt;code&gt;npx playwright install&lt;/code&gt;. No API key needed.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.6 SnapRender
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Screenshot API for the web. Claude sends a URL and gets back a rendered screenshot (PNG, JPEG, WebP, or PDF) of that page. Supports device emulation (iPhone, Pixel, iPad), dark mode, full-page captures, ad blocking, and cookie banner removal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you want it:&lt;/strong&gt; Claude is a multimodal model that can analyze images, but it cannot see what a website looks like on its own. SnapRender gives it visual capture. Ask "does our landing page look right on mobile?" and Claude will screenshot the page, analyze the image, and point out layout issues. Also useful for visual regression testing, OG image validation, and monitoring competitor pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where it falls short:&lt;/strong&gt; SnapRender captures static screenshots, not interactive sessions. If you need Claude to click through a multi-step flow (login, fill form, submit), use Playwright instead. SnapRender is better for quick visual checks, device-specific captures, and anything where you need a clean screenshot without running a local browser.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"snaprender"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"snaprender-mcp"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"SNAPRENDER_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"sk_live_your_key_here"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setup:&lt;/strong&gt; Sign up at &lt;a href="https://snap-render.com" rel="noopener noreferrer"&gt;snap-render.com&lt;/a&gt; for a free API key (200 screenshots/month, no credit card required). Copy the key from your dashboard at &lt;a href="https://app.snap-render.com/dashboard" rel="noopener noreferrer"&gt;app.snap-render.com/dashboard&lt;/a&gt;. Paid plans start at $9/month for 2,000 screenshots. SnapRender also supports a remote MCP server with OAuth (covered in Section 7).&lt;/p&gt;

&lt;h3&gt;
  
  
  5.7 Figma
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Reads design data from Figma files. Claude can inspect components, variables, layout properties, and generate code from selected frames.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you want it:&lt;/strong&gt; Bridging design and code. Point Claude at a Figma frame and ask it to build the component. It reads the design tokens, spacing, and typography directly from the file instead of you manually translating the design.&lt;/p&gt;

&lt;p&gt;Figma offers both a remote server (recommended) and a local desktop server. The remote server is the simplest to set up:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the Claude Desktop chat box, click the &lt;strong&gt;+&lt;/strong&gt; icon&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Connectors &amp;gt; Browse Connectors&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Search for "Figma" and add it&lt;/li&gt;
&lt;li&gt;Authenticate with your Figma account when prompted&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the local desktop server (requires Figma Desktop app with Dev Mode), open a Figma Design file, switch to Dev Mode, and enable the MCP server in the right sidebar. Copy the URL it provides and configure it as a Streamable HTTP endpoint. See &lt;a href="https://help.figma.com/hc/en-us/articles/39888612464151" rel="noopener noreferrer"&gt;Figma's MCP documentation&lt;/a&gt; for the latest setup steps.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.8 Supabase
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Direct access to your Supabase project. Claude can run SQL queries, list tables, apply migrations, generate TypeScript types from your schema, and fetch logs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you want it:&lt;/strong&gt; Database debugging without leaving the conversation. Ask Claude "why are users seeing duplicate rows in the orders table?" and it can query the database, inspect the schema, and find the problem.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"supabase"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@supabase/mcp-server-supabase@latest"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"--read-only"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"--project-ref=your-project-ref"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"SUPABASE_ACCESS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"sbp_your_personal_access_token"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setup:&lt;/strong&gt; Generate a Personal Access Token from your &lt;a href="https://supabase.com/dashboard/account/tokens" rel="noopener noreferrer"&gt;Supabase dashboard&lt;/a&gt;. Replace &lt;code&gt;your-project-ref&lt;/code&gt; with your project's reference ID (found in your project settings URL). The &lt;code&gt;--read-only&lt;/code&gt; flag is strongly recommended unless you specifically need write access.&lt;/p&gt;

&lt;h3&gt;
  
  
  Combined Configuration
&lt;/h3&gt;

&lt;p&gt;Here is a full &lt;code&gt;claude_desktop_config.json&lt;/code&gt; with all eight servers (minus Figma, which uses the connector UI):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"github"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"docker"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"run"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"-i"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"--rm"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"-e"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"GITHUB_PERSONAL_ACCESS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"ghcr.io/github/github-mcp-server"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"GITHUB_PERSONAL_ACCESS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ghp_your_token_here"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"brave-search"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@modelcontextprotocol/server-brave-search"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"BRAVE_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"your_brave_api_key_here"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@upstash/context7-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"filesystem"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@modelcontextprotocol/server-filesystem"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"/Users/you/projects"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"playwright"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@playwright/mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"snaprender"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"snaprender-mcp"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"SNAPRENDER_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"sk_live_your_key_here"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"supabase"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@supabase/mcp-server-supabase@latest"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"--read-only"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"--project-ref=your-project-ref"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"SUPABASE_ACCESS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"sbp_your_token_here"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the placeholder tokens with your actual credentials. You do not need all of these servers. Start with the ones that match your workflow and add more later.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Desktop Extensions: One-Click MCP Installation
&lt;/h2&gt;

&lt;p&gt;Editing JSON config files works, but it is tedious and error-prone. Desktop Extensions are Anthropic's answer to this problem.&lt;/p&gt;

&lt;p&gt;A Desktop Extension is a packaged MCP server that bundles the server code, its dependencies, and a manifest file into a single archive. Double-click the file (or drag it into Claude Desktop), and the server installs automatically. No Node.js, no Docker, no JSON editing.&lt;/p&gt;

&lt;p&gt;The original format uses the &lt;code&gt;.dxt&lt;/code&gt; file extension. Anthropic has also introduced the &lt;code&gt;.mcpb&lt;/code&gt; (MCP Bundle) format for newer extensions; both work, but &lt;code&gt;.mcpb&lt;/code&gt; is recommended for new development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to install a Desktop Extension:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download the &lt;code&gt;.dxt&lt;/code&gt; or &lt;code&gt;.mcpb&lt;/code&gt; file from the server's website or GitHub releases&lt;/li&gt;
&lt;li&gt;Double-click the file, or go to &lt;strong&gt;Settings &amp;gt; Extensions &amp;gt; Install Extension&lt;/strong&gt; and select it&lt;/li&gt;
&lt;li&gt;Configure any required settings (API keys, directory paths) in the dialog that appears&lt;/li&gt;
&lt;li&gt;The server is ready immediately, no restart needed&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Where to find extensions:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.desktopextensions.com/" rel="noopener noreferrer"&gt;desktopextensions.com&lt;/a&gt; maintains a directory of available extension packages&lt;/li&gt;
&lt;li&gt;Many MCP server repos include extension builds in their GitHub releases&lt;/li&gt;
&lt;li&gt;The Claude Desktop extension browser (&lt;strong&gt;Settings &amp;gt; Extensions &amp;gt; Browse&lt;/strong&gt;) lists reviewed extensions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Not every MCP server has an extension package yet. For servers that only offer &lt;code&gt;npx&lt;/code&gt; or Docker installation, you still need the JSON config approach from Section 5. But the number of packaged extensions is growing quickly, and for servers that support it, the installation experience is much smoother.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. How to Connect Remote MCP Servers
&lt;/h2&gt;

&lt;p&gt;Everything covered so far has been about local MCP servers: processes that run on your machine, started by Claude Desktop when you launch the app. Remote MCP servers are different. They run on someone else's infrastructure, and Claude connects to them over HTTPS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why remote servers exist:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No local dependencies (no Node.js, no Docker)&lt;/li&gt;
&lt;li&gt;The server maintainer handles updates and scaling&lt;/li&gt;
&lt;li&gt;OAuth authentication instead of managing API keys in plain-text config files&lt;/li&gt;
&lt;li&gt;Works on any device without per-machine setup&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How they work in Claude Desktop:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Remote servers use the Streamable HTTP transport with OAuth 2.1 for authentication. When you add a remote server, Claude Desktop opens a browser window for you to log in to the service. After you authorize access, Claude stores the OAuth token and connects automatically on future sessions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Adding a remote server:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In Claude Desktop, click your profile icon and open &lt;strong&gt;Settings&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Navigate to &lt;strong&gt;Connectors&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add custom connector&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Enter the server's MCP endpoint URL&lt;/li&gt;
&lt;li&gt;(Optional) Provide an OAuth Client ID and Client Secret if the server requires it&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add&lt;/strong&gt; and complete the authentication flow in your browser&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Example: SnapRender's remote MCP server&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SnapRender exposes a remote MCP endpoint at &lt;code&gt;https://app.snap-render.com/mcp&lt;/code&gt;. Instead of running &lt;code&gt;npx snaprender-mcp&lt;/code&gt; locally and managing an API key in your config file, you can connect via OAuth:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Settings &amp;gt; Connectors &amp;gt; Add custom connector&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Enter the URL: &lt;code&gt;https://app.snap-render.com/mcp&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Claude opens SnapRender's login page in your browser&lt;/li&gt;
&lt;li&gt;Sign in with your SnapRender account and approve access&lt;/li&gt;
&lt;li&gt;Done. No API key to copy, no config file to edit.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The remote server provides the same tools as the local &lt;code&gt;npx&lt;/code&gt; version (screenshots, cache checks, usage stats). The difference is purely in how authentication and connectivity work. Use the local version if you prefer keeping everything on your machine; use the remote version if you want simpler setup and automatic token management.&lt;/p&gt;

&lt;p&gt;Other services with remote MCP servers include Figma, Supabase, and many database providers. Check your tools' documentation to see if they offer a remote endpoint.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Troubleshooting Claude Desktop MCP Issues
&lt;/h2&gt;

&lt;h3&gt;
  
  
  "No tools detected" after adding a server
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Restart fully.&lt;/strong&gt; Quit Claude Desktop (Cmd+Q on macOS, Alt+F4 on Windows) and relaunch. Closing the window is not enough; the app continues running in the system tray.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate your JSON.&lt;/strong&gt; A missing comma or extra trailing comma will break the entire config. Paste your &lt;code&gt;claude_desktop_config.json&lt;/code&gt; into &lt;a href="https://jsonlint.com/" rel="noopener noreferrer"&gt;jsonlint.com&lt;/a&gt; to check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confirm &lt;code&gt;npx&lt;/code&gt; is in your PATH.&lt;/strong&gt; Open a terminal and run &lt;code&gt;which npx&lt;/code&gt; (macOS/Linux) or &lt;code&gt;where npx&lt;/code&gt; (Windows). If it does not exist, install Node.js from &lt;a href="https://nodejs.org/" rel="noopener noreferrer"&gt;nodejs.org&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Server starts but tools fail
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Check your API keys.&lt;/strong&gt; A typo in your GitHub PAT or Brave API key will cause silent failures. Regenerate and re-paste if unsure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docker must be running.&lt;/strong&gt; For Docker-based servers (like GitHub MCP), Docker Desktop must be started before launching Claude.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the logs.&lt;/strong&gt; On macOS, open &lt;code&gt;~/Library/Logs/Claude/&lt;/code&gt; for error output from MCP servers. On Windows, check &lt;code&gt;%APPDATA%\Claude\logs\&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  "Command not found" errors
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Windows path issue:&lt;/strong&gt; &lt;code&gt;npx&lt;/code&gt; may need the full path: &lt;code&gt;"command": "C:\\Program Files\\nodejs\\npx.cmd"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;macOS Homebrew/nvm issue:&lt;/strong&gt; If you installed Node via Homebrew or nvm, the path may not be available to Claude Desktop's process. Set the full path: &lt;code&gt;"command": "/usr/local/bin/npx"&lt;/code&gt; (or wherever &lt;code&gt;which npx&lt;/code&gt; points). For nvm, try &lt;code&gt;"command": "/Users/you/.nvm/versions/node/v22.0.0/bin/npx"&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Slow server startup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;First run is slow.&lt;/strong&gt; The first &lt;code&gt;npx&lt;/code&gt; run downloads the package. Subsequent launches use the cached version and are faster.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Global install option:&lt;/strong&gt; If startup is consistently slow, install the package globally (&lt;code&gt;npm install -g @modelcontextprotocol/server-brave-search&lt;/code&gt;) and point the command at the global binary instead of using &lt;code&gt;npx&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clear stale cache:&lt;/strong&gt; If a server behaves oddly after an update, clear the npx cache with &lt;code&gt;rm -rf ~/.npm/_npx&lt;/code&gt; (macOS/Linux) or delete &lt;code&gt;%LocalAppData%\npm-cache\_npx&lt;/code&gt; (Windows), then restart Claude Desktop.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Best practices
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Start small.&lt;/strong&gt; Do not add all eight servers at once. Start with one or two, confirm they work, then add more. Each server is a process that Claude Desktop manages, and debugging six broken servers simultaneously is no fun.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use read-only where possible.&lt;/strong&gt; The filesystem server, Supabase, and GitHub all support read-only modes. Use them until you are confident in the setup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keep secrets out of version control.&lt;/strong&gt; If you share your &lt;code&gt;claude_desktop_config.json&lt;/code&gt; (for example, in a team dotfiles repo), strip out the API keys first. Use environment variable references or a separate secrets file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch your quotas.&lt;/strong&gt; Every tool call costs something. Brave Search charges per query, SnapRender charges per screenshot, and Supabase counts against your API limits. Keep an eye on your usage dashboards.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Which MCP Servers Should You Install First?
&lt;/h2&gt;

&lt;p&gt;If you are setting up Claude Desktop for the first time, here is the stack I would start with:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Priority&lt;/th&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Filesystem&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Free, no API key&lt;/td&gt;
&lt;td&gt;Let Claude read your project files. This alone makes it dramatically more useful for code-related conversations.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Brave Search&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$5/mo credits (~1,000 queries)&lt;/td&gt;
&lt;td&gt;Give Claude access to current information. Essential when working with fast-moving frameworks.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;GitHub&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Free, requires PAT + Docker&lt;/td&gt;
&lt;td&gt;If you use GitHub daily, this saves constant tab-switching.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Add these three, confirm everything works, then expand based on your needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Building web UIs? Add &lt;strong&gt;Playwright&lt;/strong&gt; for browser automation and &lt;strong&gt;SnapRender&lt;/strong&gt; for visual capture.&lt;/li&gt;
&lt;li&gt;Working from Figma designs? Add the &lt;strong&gt;Figma&lt;/strong&gt; connector.&lt;/li&gt;
&lt;li&gt;Using Supabase? Add the &lt;strong&gt;Supabase&lt;/strong&gt; server in read-only mode.&lt;/li&gt;
&lt;li&gt;Tired of Claude using outdated API docs? Add &lt;strong&gt;Context7&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is not to install every server available. It is to give Claude the specific tools that match your daily workflow. A focused stack of three or four well-configured servers is more useful than a bloated setup with ten servers you rarely use.&lt;/p&gt;

&lt;p&gt;For more MCP server recommendations organized by use case, see &lt;a href="https://dev.to/blog/best-mcp-servers-web-developers-2026"&gt;Best MCP Servers for Web Developers in 2026&lt;/a&gt; and &lt;a href="https://dev.to/blog/mcp-servers-frontend-developers-havent-heard"&gt;MCP Servers for Frontend Developers You Haven't Heard Of&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. FAQ: Claude Desktop and MCP Servers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How do I configure MCP servers in Claude Desktop?
&lt;/h3&gt;

&lt;p&gt;Open Claude Desktop, go to &lt;strong&gt;Settings &amp;gt; Developer &amp;gt; Edit Config&lt;/strong&gt;. This opens the &lt;code&gt;claude_desktop_config.json&lt;/code&gt; file in your default text editor. Add your MCP server definitions to the &lt;code&gt;mcpServers&lt;/code&gt; object in this JSON file, save it, then quit and relaunch Claude Desktop to load the new servers.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are MCP servers and do I need them?
&lt;/h3&gt;

&lt;p&gt;MCP (Model Context Protocol) servers are small programs that give Claude access to external tools and data. Without them, Claude can only work with text you paste into the chat. With them, Claude can read your files, search the web, interact with GitHub, query databases, and more. You do not need them for basic chat, but they make Claude significantly more useful for development work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Claude Desktop free to use?
&lt;/h3&gt;

&lt;p&gt;Claude Desktop is a free download, and there is a free tier with limited messages per day. For regular use, you need a Pro subscription at $20/month, which gives you higher message limits and access to all models. Power users can upgrade to Max ($100/month or $200/month) for even higher limits.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Claude Desktop on Linux?
&lt;/h3&gt;

&lt;p&gt;There is no official Linux build from Anthropic. Community packages exist (such as &lt;a href="https://github.com/aaddrick/claude-desktop-debian" rel="noopener noreferrer"&gt;claude-desktop-debian&lt;/a&gt;) that repackage the Windows build to run natively on Debian-based distributions. For a fully supported experience on Linux, &lt;a href="https://code.claude.com/" rel="noopener noreferrer"&gt;Claude Code&lt;/a&gt; (the CLI tool) has full MCP support.&lt;/p&gt;

&lt;h3&gt;
  
  
  How many MCP servers can I run at once?
&lt;/h3&gt;

&lt;p&gt;There is no hard limit, but each MCP server is a separate process consuming memory and CPU. In practice, 5 to 8 servers run fine on most machines. If you notice Claude Desktop becoming slow, reduce the number of active servers or switch some to remote servers (which run on someone else's infrastructure).&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the difference between local and remote MCP servers?
&lt;/h3&gt;

&lt;p&gt;Local MCP servers run on your machine as child processes of Claude Desktop. You configure them in &lt;code&gt;claude_desktop_config.json&lt;/code&gt; with a command and arguments. Remote MCP servers run on external infrastructure and connect over HTTPS with OAuth authentication. Remote servers require no local setup but depend on the provider's uptime. Local servers work offline but need Node.js or Docker installed.&lt;/p&gt;




&lt;p&gt;Save your &lt;code&gt;claude_desktop_config.json&lt;/code&gt; somewhere safe, restart Claude Desktop, and start building.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Puppeteer Full-Page Screenshots: Why They Break and How to Fix Them</title>
      <dc:creator>Dennis</dc:creator>
      <pubDate>Sat, 30 May 2026 11:15:59 +0000</pubDate>
      <link>https://dev.to/dennis-ddev/puppeteer-full-page-screenshots-why-they-break-and-how-to-fix-them-40je</link>
      <guid>https://dev.to/dennis-ddev/puppeteer-full-page-screenshots-why-they-break-and-how-to-fix-them-40je</guid>
      <description>&lt;p&gt;&lt;strong&gt;Puppeteer screenshot full page not working&lt;/strong&gt; usually comes down to one of six problems: fixed-position elements repeating across the capture, lazy-loaded images staying as placeholders, infinite scroll pages only capturing the first viewport, CSS &lt;code&gt;overflow: hidden&lt;/code&gt; clipping the output, incorrect page height calculations, or iframes refusing to render. This guide covers each failure mode with the actual cause and working code to fix it.&lt;/p&gt;

&lt;p&gt;I've spent more time debugging Puppeteer full-page screenshots than I'd like to admit. The &lt;code&gt;fullPage: true&lt;/code&gt; option sounds like it should just work. It measures the page height, resizes the viewport, and captures everything. In practice, modern web pages are hostile to that approach. Here's every way it breaks and what to do about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Fixed-Position Elements Repeating on Every Segment
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What happens
&lt;/h3&gt;

&lt;p&gt;You take a full-page screenshot and notice the site's sticky header, floating nav, or fixed footer appears multiple times, stamped across every viewport-height segment of the image. On long pages, you might see the same header repeated five or six times.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why it breaks
&lt;/h3&gt;

&lt;p&gt;Puppeteer captures full-page screenshots by extending the viewport to the full document height, then rendering. But &lt;code&gt;position: fixed&lt;/code&gt; elements are positioned relative to the viewport, not the document. When Chrome renders a page at, say, 8000px tall, fixed elements paint at their viewport-relative position. Depending on Chrome's internal tiling, these elements can ghost across multiple tiles.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fix
&lt;/h3&gt;

&lt;p&gt;Force fixed elements to &lt;code&gt;position: absolute&lt;/code&gt; before capturing, then restore them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newPage&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://example.com&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;networkidle0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// Convert fixed elements to absolute before screenshot&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;fixed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;*&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;fixed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;style&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getComputedStyle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;position&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;fixed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setAttribute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;data-was-fixed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;true&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;position&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;absolute&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;screenshot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;fullPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// Restore if you need the page afterward&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;[data-was-fixed]&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;position&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;fixed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeAttribute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;data-was-fixed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A lighter approach if you just want to hide them entirely:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;*&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getComputedStyle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;position&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;fixed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;display&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;none&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Querying all elements with &lt;code&gt;querySelectorAll('*')&lt;/code&gt; is expensive on large DOMs. If you know the selectors (&lt;code&gt;.navbar&lt;/code&gt;, &lt;code&gt;#sticky-header&lt;/code&gt;), target them directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Lazy-Loaded Images Showing as Placeholders
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What happens
&lt;/h3&gt;

&lt;p&gt;Your full-page screenshot captures the layout correctly, but half the images are grey boxes, blurred placeholders, or missing entirely. The top of the page looks fine; everything below the fold is broken.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why it breaks
&lt;/h3&gt;

&lt;p&gt;Lazy loading (via &lt;code&gt;loading="lazy"&lt;/code&gt;, Intersection Observer, or libraries like &lt;code&gt;lazysizes&lt;/code&gt;) only loads images when they enter the viewport. When Puppeteer sets &lt;code&gt;fullPage: true&lt;/code&gt;, it extends the viewport height but doesn't scroll. The browser never fires the intersection events that trigger image loading. The images stay in their placeholder state.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fix
&lt;/h3&gt;

&lt;p&gt;Scroll the entire page before capturing. This forces every lazy-loaded image into the viewport at least once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;scrollToBottom&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;totalHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;timer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;setInterval&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;scrollHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrollBy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nx"&gt;totalHeight&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;totalHeight&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="nx"&gt;scrollHeight&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="nf"&gt;clearInterval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;timer&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
          &lt;span class="c1"&gt;// Scroll back to top for a clean capture&lt;/span&gt;
          &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrollTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
          &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://example.com&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;networkidle0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;scrollToBottom&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Wait for images triggered by scrolling to finish loading&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitForFunction&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;images&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;images&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;images&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;every&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;img&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;complete&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10000&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;screenshot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;fullPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The scroll speed matters. Too fast (distance 2000, interval 10) and the Intersection Observer callbacks don't fire. I've found 400px every 100ms works reliably across most sites. For pages with particularly aggressive lazy loading, drop it to 200px every 150ms.&lt;/p&gt;

&lt;p&gt;Some sites use &lt;code&gt;data-src&lt;/code&gt; attributes and swap them into &lt;code&gt;src&lt;/code&gt; on scroll. If images still aren't loading after scrolling, check for that pattern:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;img[data-src]&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;img&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;src&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getAttribute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;data-src&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Infinite Scroll Pages Capturing Only the Initial Viewport
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What happens
&lt;/h3&gt;

&lt;p&gt;You're trying to capture a page that loads more content as you scroll (social media feeds, product listings, search results). The &lt;strong&gt;puppeteer screenshot full page not working&lt;/strong&gt; complaint here is that &lt;code&gt;fullPage: true&lt;/code&gt; captures only what's loaded initially, usually one viewport's worth.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why it breaks
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;fullPage: true&lt;/code&gt; captures the current document height. On an infinite scroll page, the document height at load time only reflects the initially loaded content. The page won't grow until scroll events trigger the next batch of content.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fix
&lt;/h3&gt;

&lt;p&gt;You need to scroll incrementally and wait for new content to load at each step. Set a limit, or you'll be scrolling forever:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;scrollInfinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;maxScrolls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;previousHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;scrollCount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;scrollCount&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;maxScrolls&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;currentHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;currentHeight&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;previousHeight&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="c1"&gt;// No new content loaded, we've hit the end&lt;/span&gt;
      &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nx"&gt;previousHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;currentHeight&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrollTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

    &lt;span class="c1"&gt;// Wait for new content to load&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitForFunction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="s2"&gt;`document.body.scrollHeight &amp;gt; &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;currentHeight&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5000&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="c1"&gt;// Timeout means no new content, stop scrolling&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;

    &lt;span class="nx"&gt;scrollCount&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="c1"&gt;// Scroll back to top&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrollTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://example.com/feed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;networkidle2&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;scrollInfinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;screenshot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;fullPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Be aware of the hard limit: Puppeteer caps screenshot height at &lt;strong&gt;16,384px&lt;/strong&gt; by default (Chrome's maximum texture size on many GPUs). Some configurations support up to 32,768px, but beyond that the screenshot will silently clip. For very long infinite scroll pages, you may need to capture in segments and stitch them.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. CSS overflow: hidden on Body Clipping the Capture
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What happens
&lt;/h3&gt;

&lt;p&gt;The screenshot comes out as exactly one viewport tall, even though you passed &lt;code&gt;fullPage: true&lt;/code&gt; and the page clearly has more content when you view it in a regular browser.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why it breaks
&lt;/h3&gt;

&lt;p&gt;Many sites set &lt;code&gt;overflow: hidden&lt;/code&gt; on &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;, often as part of a modal system, scroll-locking library, or CSS reset. When Puppeteer calculates the full page height, it looks at the scroll height of the document. With &lt;code&gt;overflow: hidden&lt;/code&gt;, the computed scroll height equals the viewport height. Puppeteer thinks the page is only one viewport tall.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fix
&lt;/h3&gt;

&lt;p&gt;Override the overflow before capturing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://example.com&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;networkidle0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;overflow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;visible&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;overflow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;visible&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;screenshot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;fullPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the site uses a CSS framework that sets overflow via a class, you might also need to remove that class:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;no-scroll&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;overflow-hidden&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;modal-open&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;no-scroll&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;overflow-hidden&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Watch out for sites that toggle overflow dynamically. If a cookie banner or popup fires after your override, it might re-apply &lt;code&gt;overflow: hidden&lt;/code&gt;. Handle that by waiting for popups to appear and dismissing them first, or by running the override right before the screenshot call.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Wrong Page Height Calculation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What happens
&lt;/h3&gt;

&lt;p&gt;The screenshot cuts off partway through the page, or includes a large blank area at the bottom. The page height is wrong.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why it breaks
&lt;/h3&gt;

&lt;p&gt;Puppeteer uses &lt;code&gt;document.documentElement.scrollHeight&lt;/code&gt; to determine page height. But there are multiple height values that can differ:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// These can all return different numbers:&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;offsetHeight&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;offsetHeight&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;clientHeight&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The discrepancy comes from margins, padding, absolutely positioned elements that extend beyond the document flow, and CSS box model differences. An absolutely positioned footer sitting 200px below the last in-flow element? &lt;code&gt;scrollHeight&lt;/code&gt; might not account for it. A &lt;code&gt;body&lt;/code&gt; with &lt;code&gt;margin: 0&lt;/code&gt; vs. one with the default 8px margin? Different heights.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fix
&lt;/h3&gt;

&lt;p&gt;If the screenshot is cutting off, manually set the viewport height to the true content height before capturing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://example.com&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;networkidle0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;bodyHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;offsetHeight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;clientHeight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;offsetHeight&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setViewport&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1280&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;bodyHeight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// Use clip instead of fullPage for precise control&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;screenshot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;clip&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1280&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;bodyHeight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For pages with absolutely positioned elements that extend beyond the normal flow, you need a more thorough measurement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;fullHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;allElements&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;*&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;maxBottom&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;allElements&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;rect&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getBoundingClientRect&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;bottom&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;rect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;bottom&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;bottom&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;maxBottom&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;maxBottom&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;bottom&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ceil&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;maxBottom&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is slow on large DOMs but gives you the true bottom of the last visible element on the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Iframes Not Rendering
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What happens
&lt;/h3&gt;

&lt;p&gt;The screenshot captures the page but iframe content shows up as blank white rectangles. Embedded videos, maps, social media embeds, and third-party widgets are all missing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why it breaks
&lt;/h3&gt;

&lt;p&gt;Several things can cause blank iframes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cross-origin iframes&lt;/strong&gt; may block rendering in headless mode due to stricter security policies&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Iframes that load asynchronously&lt;/strong&gt; may not be ready when Puppeteer takes the screenshot&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Some iframes detect headless Chrome&lt;/strong&gt; and refuse to render (YouTube embeds, Google Maps)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The fix
&lt;/h3&gt;

&lt;p&gt;First, make sure you're waiting long enough. &lt;code&gt;networkidle0&lt;/code&gt; waits for zero network connections for 500ms, but iframes often load their own resources independently:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://example.com&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;networkidle0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// Wait for iframes to load&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nx"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;frame&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
    &lt;span class="nx"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitForNavigation&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;networkidle0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5000&lt;/span&gt; &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{})&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Additional wait for iframe content rendering&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitForTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;screenshot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;fullPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For iframes that detect headless mode, you'll need to make Puppeteer look like a real browser:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;browser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;puppeteer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;headless&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;new&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;--disable-web-security&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;--disable-features=IsolateOrigins,site-per-process&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;--no-sandbox&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newPage&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="c1"&gt;// Override headless detection&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluateOnNewDocument&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;defineProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;navigator&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;webdriver&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;get&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;chrome&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;runtime&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: &lt;code&gt;--disable-web-security&lt;/code&gt; is fine for screenshot tooling but never use it in production contexts where users interact with the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Combining Fixes: The Full-Page Screenshot Function
&lt;/h2&gt;

&lt;p&gt;Here's a utility function that handles all six issues:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;reliableFullPageScreenshot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;options&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;width&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1280&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;scrollDelay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;scrollDistance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;options&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setViewport&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;networkidle0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30000&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="c1"&gt;// Remove overflow restrictions&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;overflow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;visible&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;overflow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;visible&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="c1"&gt;// Convert fixed elements to absolute&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;*&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getComputedStyle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;position&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;fixed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;position&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;absolute&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="c1"&gt;// Scroll to trigger lazy loading&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;totalHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;timer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;setInterval&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrollBy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nx"&gt;totalHeight&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;totalHeight&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="nf"&gt;clearInterval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;timer&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
          &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrollTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
          &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="nx"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="nx"&gt;scrollDistance&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;scrollDelay&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="c1"&gt;// Wait for all images&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitForFunction&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;images&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;every&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;img&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;complete&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10000&lt;/span&gt; &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{});&lt;/span&gt;

  &lt;span class="c1"&gt;// Wait for iframes&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
      &lt;span class="nx"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitForNavigation&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;waitUntil&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;load&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3000&lt;/span&gt; &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{})&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;fullPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This handles the majority of full-page screenshot failures. It's not fast. On a content-heavy page, you're looking at 10-15 seconds for the scroll, image loading, and iframe waiting. For pages with infinite scroll, add the &lt;code&gt;scrollInfinite&lt;/code&gt; function from section 3 instead of the basic scroll-to-bottom.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the DIY Approach Isn't Worth It
&lt;/h2&gt;

&lt;p&gt;This utility function is around 50 lines and handles the common cases. But real-world pages keep finding new ways to break screenshots. Cookie consent popups that re-enable &lt;code&gt;overflow: hidden&lt;/code&gt; after you clear it. JavaScript-rendered content that needs specific user interactions to appear. WebGL canvases that render as black rectangles.&lt;/p&gt;

&lt;p&gt;If you're maintaining screenshot infrastructure for a production service, the time spent chasing edge cases adds up. Screenshot APIs like &lt;a href="https://snap-render.com" rel="noopener noreferrer"&gt;SnapRender&lt;/a&gt; handle all of this server-side, including full-page capture up to 32,768px with fixed-element handling and lazy-load triggering built in. A single GET request replaces the entire function above. That trade-off makes sense when your core product isn't "taking screenshots" and you'd rather spend engineering time elsewhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Reference Table
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;th&gt;Root Cause&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fixed headers repeating&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;position: fixed&lt;/code&gt; paints per viewport tile&lt;/td&gt;
&lt;td&gt;Switch to &lt;code&gt;position: absolute&lt;/code&gt; before capture&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lazy images as placeholders&lt;/td&gt;
&lt;td&gt;Intersection Observer never fires&lt;/td&gt;
&lt;td&gt;Scroll the page before capturing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Infinite scroll only shows first page&lt;/td&gt;
&lt;td&gt;Document height reflects initial load only&lt;/td&gt;
&lt;td&gt;Scroll incrementally, wait for new content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Page clips at one viewport height&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;overflow: hidden&lt;/code&gt; on html/body&lt;/td&gt;
&lt;td&gt;Override to &lt;code&gt;overflow: visible&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Screenshot cuts off or has blank space&lt;/td&gt;
&lt;td&gt;Wrong height calculation method&lt;/td&gt;
&lt;td&gt;Use &lt;code&gt;Math.max()&lt;/code&gt; across all height properties&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Iframes render as blank&lt;/td&gt;
&lt;td&gt;Async loading, headless detection, CORS&lt;/td&gt;
&lt;td&gt;Wait for frame navigation, disable web security&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;fullPage: true&lt;/code&gt; option in Puppeteer is a starting point, not a complete solution. Most production screenshot setups end up wrapping it with at least three or four of these fixes. If your puppeteer screenshot full page not working problem has you searching Stack Overflow at midnight, start with the quick reference table above and apply the fixes that match your symptoms.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
