October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

How to Set a Timeout for Website Screenshots in Playwright MCP

Playwright MCP does not document a timeout argument for browser_take_screenshot. Match the setting to the slow phase, or check the MCP host deadline if the page is already ready.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

browser_take_screenshot has no documented screenshot-specific timeout argument. Set the timeout for the phase that is actually slow: navigation, a browser action before capture, or work settling after an action. If the page is ready but the MCP call itself is cut off, investigate the MCP client, IDE, or proxy deadline instead; changing a Playwright server timeout does not necessarily change that external limit.

Choose the timeout for the slow phase

Playwright MCP documents separate settings for navigation, browser actions, post-action settling, and connecting to a Chrome DevTools Protocol (CDP) endpoint. These are not interchangeable, and none is a timeout parameter on the screenshot call itself. The documented defaults and meanings are:

As an Amazon Associate I earn from qualifying purchases.

Phase Setting Default What it controls
Page navigation --timeout-navigation=<ms> or PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION 60000 ms How long navigation may take.
Browser action before capture --timeout-action=<ms> or PLAYWRIGHT_MCP_TIMEOUT_ACTION 5000 ms How long an action such as a click may take.
Work triggered by an action --timeout-settle=<ms> or PLAYWRIGHT_MCP_TIMEOUT_SETTLE 500 ms How long to wait after each action for triggered work to settle.
CDP connection --cdp-timeout=<ms> or PLAYWRIGHT_MCP_CDP_TIMEOUT 30000 ms How long to wait for a connection to a CDP endpoint; it does not control screenshot capture.

These options and defaults are documented in the Playwright MCP configuration reference. Change only the setting that matches the failing phase. For instance, increasing the settle timeout will not make a slow navigation allowance longer.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Increase the navigation timeout

If navigation to the page is what exceeds its allowance, pass a larger value in milliseconds when launching the Playwright MCP server. This example sets it to two minutes:

#1 Best Overall
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest", "--timeout-navigation=120000"]
    }
  }
}

Alternatively, set the equivalent environment variable in the server process environment:

PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION=120000

Use the same approach with --timeout-action or PLAYWRIGHT_MCP_TIMEOUT_ACTION if a preceding browser action is slow, or --timeout-settle or PLAYWRIGHT_MCP_TIMEOUT_SETTLE if the page needs more time to respond after an action. The configuration reference gives the documented defaults and configuration precedence: config file, then environment variables, then command-line arguments.

Rank #2
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

What browser_take_screenshot can and cannot time out

The documented screenshot tool accepts target, type, filename, fullPage, and scale. It captures the viewport, a target element, or the full scrollable page; fullPage cannot be combined with a target element. The screenshot reference does not list a timeout argument, so adding a guessed property such as timeout is not a documented way to extend capture time. See the Playwright MCP screenshot tool reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If the page is ready but the tool call still gets terminated, the deadline may belong to the MCP client, IDE, proxy, or other host. The reviewed Playwright MCP documentation does not specify one universal setting for those external request deadlines. Identify which host is enforcing the cutoff and adjust its applicable tool-call or request limit; raising a server-side navigation timeout alone may not help.

Rank #3
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Wait for known content before taking the screenshot

If the screenshot is being taken before a particular element appears, use Playwright MCP’s documented browser_wait_for tool before capture. Its optional time argument is in seconds and is capped at 30 seconds. This is an explicit wait step, not a screenshot timeout override. The official Playwright MCP repository documents the wait tool and screenshot schema.

Troubleshoot a timeout by symptom

  • The page never finishes loading: raise timeout-navigation (or its environment variable) if the navigation itself is slow. Its documented default is 60000 ms.
  • A click or other action before capture expires: check timeout-action; its documented default is 5000 ms.
  • The page changes after a click and needs time to settle: adjust timeout-settle, whose documented default is 500 ms. This is a post-action wait, not a cap on screenshot rendering.
  • The browser cannot connect to Chrome over CDP: review cdp-timeout or PLAYWRIGHT_MCP_CDP_TIMEOUT. This governs the CDP connection, not a screenshot operation.
  • The page is ready, then the MCP request is cut off: inspect the client, IDE, or proxy deadline. The screenshot tool has no documented timeout argument, and server timeout settings do not automatically extend a host’s request deadline.
  • A known element is missing when capture starts: wait for it with browser_wait_for, keeping its documented 30-second maximum in mind.

Or skip the browser setup

If your goal is a screenshot rather than configuring a Playwright MCP session, ScreenshotNeo takes a screenshot or PDF with one GET request. Example using cURL:

Rank #4
Sale
Samsung Galaxy S26 Ultra, Unlocked Android Smartphone, 512GB, Black
  • PRIVACY DISPLAY: Automatically hide your screen from those beside you. The built-in privacy display can be preset¹ to turn on when receiving notifications, typing passwords, or using specific apps
  • TYPE IT IN. TRANSFORM IT FAST: Enhance any shot in seconds on your smartphone by using Photo Assist² with Galaxy AI.³ Add objects, restore details, or apply new styles by simply typing or tapping
  • NIGHTS, CAPTURED CLEARLY: From gigs to city lights, record and capture moments after dark with clarity using Nightography so your photos and videos stay crisp and clear on your Samsung Galaxy
  • MAKE IT. EDIT IT. SHARE IT: Turn everyday moments into something personal with creative tools built right into your mobile phone, whether it’s a special contact photo, custom wallpaper, an invitation or more⁴
  • HELP THAT KEEPS UP: Stay in the moment while Now Nudge with Galaxy AI helps you respond faster and stay organized with smart suggestions⁵ that appear exactly when you need them on your phone
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. It accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and other MCP clients. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Sign up for ScreenshotNeo and get 1,000 free screenshots a month, with no card.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Can I set a timeout directly on browser_take_screenshot?

No documented screenshot-specific timeout argument is listed for that tool.

Quick Recap

Best Value
Tracfone Moto g Play 2024 Prepaid Phone with a 1-Yr Plan Included
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Activating is easy, just 3 steps.
  • ACTIVATION Promotion: Includes 1500 min, 1500 texts & 1500 MB Data + add more as you need it
  • CAMERA SYSTEM: 50MP Quad Pixel camera. Capture sharper, more vibrant photos day or night with 4x the light sensitivity.
  • PERFORMANCE: Blazing-fast Qualcomm performance. Get the speed you need for great entertainment with a Snapdragon 680 processor and 4GB of RAM.
  • 64GB built-in storage. Get plenty of room for photos, movies, songs, and apps. Made for US

What unit does browser_wait_for use for its time argument?

Seconds; the documented maximum is 30 seconds.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.