The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Have an AI agent write or run a short Playwright script, then set the browser context’s viewport and locale before navigating to the page. Playwright—not the AI agent—provides the browser controls that determine the screen dimensions, locale signals, and screenshot capture.
What the viewport and locale settings do
A viewport is the browser’s visible page area, specified in CSS pixels. Set its width and height to reproduce a target layout, such as a desktop or narrow mobile-sized view. Playwright documents a consistent default viewport of 1280 × 720; specifying your own dimensions makes the intended capture explicit. Playwright BrowserType documentation
Locale emulation changes browser signals and formatting behavior: it affects navigator.language, the Accept-Language request header, and number and date formatting rules. It does not guarantee that a site will translate its content or show a particular regional version; that depends on the site. Playwright Emulation documentation
Capture a page with Playwright JavaScript
Ask your AI agent to create or execute a script like this. Install Playwright in the project first, and replace the example URL, dimensions, locale, and output filename with your own values.
#1 Best Overall
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const context = await browser.newContext({
viewport: { width: 1440, height: 900 },
locale: 'fr-FR',
});
const page = await context.newPage();
await page.goto('https://example.com');
await page.screenshot({ path: 'page-fr-1440x900.png' });
await browser.close();
})();
The context is configured before the page is created and navigated, so the site can respond to the intended viewport and locale during its initial load. The saved image is a viewport screenshot: by default, page.screenshot() captures what is visible in the page’s viewport. Playwright Page documentation
Capture the full scrollable page
Use fullPage: true when you need the page beyond the initially visible area:
Rank #2
- [REMOTE ACCESS CONTROL] - Securely manage your relays from anywhere via web browser or mobile app. This 8-channel Ethernet relay controller supports remote access through , , and tablet systems, ensuring global connectivity with robust security protocols.
- [HIGH-POWER RELAY CONTROL] - Each of the 8 channels handles up to 250VAC/10A, ideal for industrial and home automation. The active low-level control feature simplifies switch and sensor integration, while optocoupler isolation protects against voltage spikes.
- [WEB SERVER & PROTOCOL FLEXIBILITY] - Easily modify IP ports via the built-in web server. Supports re-engineering protocols for enhanced networking, compatible with routers for seamless integration into existing systems like SCADA or IoT platforms.
- [DURABLE & SAFE DESIGN] - Features internal circuit protection and a wide operating voltage range (9V-40V DC). The compact white casing (145x90x40mm) includes a protective cover, making it suitable for both indoor and industrial environments.
- [VERSATILE APPLICATIONS] - Perfect for smart homes, HVAC systems, and lighting control. Includes reset functionality (short press for reset, long press for factory settings) and status return to monitor relay states in real-time.
await page.screenshot({ path: 'page-full.png', fullPage: true });
Full-page capture and viewport capture serve different purposes. Choose based on whether you need the visible screen or the entire scrollable document.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsChange viewport after creating a page
Playwright also provides page.setViewportSize():
await page.setViewportSize({ width: 1440, height: 900 });
Prefer setting the viewport on browser.newContext() before navigation when possible. Playwright cautions that many websites do not expect a phone-sized page to change size after loading. Changing the viewport also resets the screen size; if you need screen size and viewport to be controlled separately, configure the context’s screen and viewport settings. Playwright Page documentation
Rank #3
- BliKVMv4 Allwinner KVM Over IP PoE HDMI Loop Out Process Control Operation and Maintenance for IPKVM
- - BliKVM v4 is a production-ready, plug and play KVM-over-IP device that offers professional users a convenient solution for remote server or workstation management.
- It is based on Linux and fully open source. With BliKVM, you can easily power on/off, restart your computer, configure UEFI/BIOS settings, and perform OS reinstallation using an emulated Mass Storage Device.
- BliKVM simulates a keyboard, mouse, and monitor, all accessible through a web browser, ensuring a seamless user experience.
- Its hardware-level access guarantees independence from specific remote ports, protocols, or services, making it a highly flexible and reliable remote management solution for professionals.
Choose the capture area and image scale
- Visible viewport: omit
fullPageto capture the currently visible area. - Entire page: set
fullPage: trueto capture the full scrollable page. - Image scale: Playwright’s Page API documents screenshot scale options. The Playwright MCP screenshot tool also documents CSS-pixel and device-pixel scaling; device-pixel output can produce a higher-density image. Check the interface and options in the runtime you actually use. Page API · Playwright MCP screenshots
Keep the output path descriptive and include useful inputs such as locale and dimensions in the filename. If visual correctness matters, inspect the resulting image in your workflow rather than assuming that a successful script captured the intended layout or language.
Ways an AI agent can run the capture
The direct Playwright API is suitable when you want a script with explicit context settings and capture steps. If your agent environment already exposes them, Playwright also documents screenshot commands in its agent CLI and a screenshot tool in its MCP server. The CLI supports viewport, element, and full-page captures with filename and image-type options; the MCP screenshot tool documents viewport, element, and full-page targets as well as image scaling. Their exact availability depends on the runtime and installed version, so check the relevant interface before relying on a command or tool. Playwright agent CLI screenshots and PDF · Playwright MCP screenshots
Rank #4
Troubleshooting
- The page is in the wrong language: confirm the locale was set on the browser context before navigation. Locale changes browser language signals and formatting, but the site may not localize based on those signals alone.
- The layout does not match the requested size: verify the numeric width and height in the context’s
viewport. Set them before navigation so responsive behavior can take effect during page load. - The image only shows the top portion: that is the default viewport capture. Set
fullPage: truefor the full scrollable page. - The saved image is missing or unexpected: check the screenshot path and format options, then inspect the output. The documented example saves to the path supplied in the screenshot options.
- A CLI or MCP instruction is unavailable: confirm that the chosen agent runtime exposes that interface and check its installed version’s documentation. The direct Page API remains an option when the environment can run Playwright JavaScript.
Or skip the browser setup
ScreenshotNeo offers a website screenshot API and MCP server. A single request can return an image or PDF; the API accepts viewport and locale settings, among its available options. Its capture flow accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and responses identify the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
See the ScreenshotNeo API documentation for request parameters, including viewport and locale options. ScreenshotNeo’s free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Learn about ScreenshotNeo or sign up for 1,000 free screenshots a month, no card required.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Frequently Asked Questions
Can an AI agent take the screenshot without Playwright?
Yes, if its environment provides another browser automation interface or a screenshot tool such as an MCP server. The Playwright example uses Playwright as the browser-control layer; an agent can generate or run that code.
Best Value
- 【16-Channel Relay Module】This is an Ethernet controller board that is compatible with 16-channel relays. Using the controller module and 16-channel relays, you can remotely control up to 16 devices on LAN or WAN.
- 【Remote Control】The Ethernet control panel integrates a web server. When you are in the office, you only need to open the page on your computer, pad or smart phone to control the lights, air conditioners or refrigerators in your home.
- 【Ethernet Control Module】This Ethernet relay module adopts RJ45 interface, through the RJ45 telecommunication connection for network control, using the Ethernet control board, you can enjoy the fun of remotely controlling other devices at will.
- 【 Connection Control】The unique connection control of the relay module corresponds to the characteristics. The local serves as a server, and when connected to a remote server, it serves as a client to accept control.
- 【Quality Service】If the product has any quality problems or you have any questions about this product, you can us at any time,we have a 24-hour online professional customer service team.we will try our best to solve your problem in time,please rest assured to buy.
Does setting `fr-FR` translate every website into French?
No. It changes browser locale signals and formatting behavior. Whether a site translates or selects regional content is determined by that site.
Quick Recap
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.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →

