How to Capture Screenshots of Indian News Websites in English and Hindi with MCP
Use Playwright MCP to open an Indian news page, choose its English or Hindi version, and capture a viewport, element, or full-page screenshot.
Use Playwright MCP to navigate to the news page you want, select the English or Hindi presentation through that publisher’s own controls or URL, inspect it with an accessibility snapshot, and capture the visible viewport, a specific element, or the full page. The exact language control and URL pattern vary by publisher, so verify that the intended language is visible in the screenshot.
What you need
- Node.js 20 or newer.
- An MCP-compatible client, configured to run Playwright MCP.
- The URL of the article or page you want to capture.
Follow your MCP client’s instructions for where to place server configuration; that location differs among clients. The Playwright documentation gives this standard server command:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}
After adding the configuration, restart or reload the MCP client if its setup instructions require it, then confirm Playwright’s browser tools are available. See the official Playwright MCP getting-started guide for current setup details.
Capture the English or Hindi page
- Navigate to the specific page. Ask the connected browser to open the publisher’s article or section URL. Starting from the exact page avoids capturing a homepage or search results by mistake.
- Select the language on the publisher’s site. Use its language menu, article link, or language-specific URL when available. Do not assume that a control or URL pattern works across publishers. If selection opens another page, wait for navigation to finish and check that the destination is the intended article.
- Inspect the structure. Call
browser_snapshotand review the accessible page content and controls. Use snapshot references to interact with controls such as language selectors; snapshots are the structured way to find page elements. - Capture the screenshot. Call
browser_take_screenshot, choosing a viewport, element, or full-page capture and the desired format and scale. - Visually check the result. Confirm the publisher, article, and intended language are visible. A snapshot helps inspect accessible content; the screenshot is the visual record.
Example instructions for an MCP client
Tool calls are issued by the MCP client, so the exact interaction transcript depends on that client. A useful request to the connected assistant is:
Open https://example.com/news/article in the browser. Use the page's language controls or links to open the English version. Inspect the page with browser_snapshot, then capture a full-page screenshot as PNG. Show me the screenshot so I can verify the article and language.
Replace the example URL with the publisher’s real article URL. Repeat for Hindi, explicitly asking the assistant to select the Hindi version and verify the result. This is an instruction to the MCP client, not a universal language-switching command: the site’s available controls determine how language selection works.
Choose scope, format, and resolution
| Choice | Use it when | Notes |
|---|---|---|
| Viewport | You need the currently visible screen. | Useful for a quick visual check or a consistent first-screen capture. |
| Element | You need one article, headline, or other page region. | Inspect the snapshot to identify the element and its reference. Full-page capture cannot be combined with an element target. |
| Full page | You need the page’s full scrollable content. | Use when the article continues below the fold. Review the resulting image to check for incomplete or unexpectedly long content. |
| PNG | You want a lossless image or will inspect fine details. | Often a practical choice for text-heavy captures. |
| JPEG | You prefer a compressed photographic image. | Compression can affect fine text detail. |
| WebP | Your downstream workflow accepts WebP. | Check compatibility with the tools where you plan to use the file. |
| CSS scale | You want dimensions tied to CSS pixels. | Useful for consistent layout sizing. |
| Device scale | You want device-pixel resolution. | Can produce a higher-resolution result, with a larger output. |
Playwright MCP’s screenshot tool supports viewport, element, and full-page capture; PNG, JPEG, and WebP; and CSS or device scale. Consult the screenshot tool reference for the current argument names and defaults.
Inline result or saved file
If you omit a filename, the screenshot is returned inline for inspection. If you provide a filename, Playwright saves it to its output directory. Use the saved-file option when you need an artifact for a later workflow, and check the MCP client’s output-directory behavior before relying on a particular path.
When a language control is hard to find
Start with browser_snapshot: it exposes accessible text and controls that can be inspected and referenced for interaction. If a visual control is missing from the accessibility tree, Playwright MCP’s optional vision mode offers coordinate-based interaction tools. Use it as a fallback, then take another snapshot or screenshot to confirm the resulting page. See the official vision mode guide.
The screenshot is for visual inspection; use snapshots to locate and interact with page elements. As the Playwright screenshot reference puts it, “Screenshots are for looking at, not for acting on — use browser_snapshot to get refs to interact with.”
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. With MCP, an AI agent can use its take_screenshot tool; its other tools include get_page_info and capture_pdf. For a direct API capture, use this one-call request (replace the example URL with the article URL):
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/news/article -o shot.webp
See the ScreenshotNeo API documentation for authentication and capture options. Cookie banners are accepted and removed before the shot, along with known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks, blank pages, and failed loads are never billed. The response includes page-verdict and billing headers. The MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots. Sign up for 1,000 free screenshots a month, with no card required.
Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
| Playwright tools are unavailable | The client has not loaded the server configuration, or its command cannot run. | Check the client-specific configuration location, confirm Node.js is version 20 or newer, and follow the client’s instructions to reload MCP servers. |
| The screenshot shows the wrong language | The page did not switch, or the selected link led to a different article or section. | Inspect the destination URL and take a fresh snapshot after the change. Verify accessible page content and the screenshot before saving. |
| The language selector cannot be found | It may not be exposed in the accessibility tree or may be represented differently by the site. | Inspect the snapshot for links and buttons. If the control is still unavailable, consider optional vision mode, then verify the result visually. |
| An element screenshot fails or captures the wrong region | The chosen reference may not identify the desired element, or the page may have changed. | Take a fresh snapshot, locate the element again, and capture it by its current reference. Do not combine an element target with full-page capture. |
| The full-page capture is incomplete or unexpectedly large | The page may load additional content while scrolling, or it may contain extensive content. | Allow the page to settle, inspect the result, and use an element or viewport capture if only one section is needed. |
| No image appears in the client | A filename may have saved the image instead of returning it inline. | Check the configured output directory. Omit the filename when you want the screenshot returned inline. |
| A visual control cannot be operated by snapshot reference | The control may not be represented in the accessibility tree. | Use the optional vision mode as a coordinate-based fallback, then inspect a new snapshot or screenshot. |
Reliability, performance, and safe configuration
- Wait for the right state. News pages can update after navigation. Before capturing, inspect a fresh snapshot and confirm the article has loaded; if needed, ask the browser to wait for the relevant content before taking the screenshot.
- Prefer the smallest useful capture. A viewport or element capture is easier to review when you need only a headline or article region. Full-page captures include more content and may create larger files.
- Choose scale for the destination. CSS scale keeps sizing tied to CSS pixels; device scale gives device-pixel resolution and can increase output dimensions.
- Check the visual artifact. Confirm language, article identity, and the region captured. A successful tool call alone does not establish that the page is the one you intended.
- Keep MCP access scoped to trusted clients. The Playwright getting-started guide warns that
browser_run_code_unsafeis equivalent to remote code execution; enable it only for trusted MCP clients. - Consider output size and retention. The documented screenshot choices describe image formats and saved or inline output, but do not establish a universal performance figure or retention policy. Check your client and local workflow for those details.
Frequently asked questions
Can I use the same language-switching instruction for every Indian news site?
No. Publishers may expose different controls or language-specific pages. Use the specific site’s navigation or URL and verify the result.
Can one screenshot prove that an article was published in both languages?
A capture records the page presented in that browser session. Capture and verify each language version separately when you need evidence of both.
Does a screenshot include selectable article text?
A screenshot is an image. Use the browser snapshot when you need structured accessible text and references to page elements.
Does Playwright MCP decide whether I may republish a screenshot?
No. The MCP documentation describes browser automation and capture, not publisher-specific reuse permissions. Check the relevant publisher’s terms and applicable rules for your intended use.


