Skip to main content

Screenshot Webpage

Controlled node

Overview

Captures a screenshot of a specified webpage URL and returns the resulting image. This node uses a headless browser to render the page, allowing you to capture either the visible viewport or the entire scrollable page.

Inputs

InputTypeDescriptionDefault
RunEventTriggers the screenshot capture.-
URLTextThe webpage URL to capture.-
WidthNumberThe width of the browser viewport in pixels.1280
HeightNumberThe height of the browser viewport in pixels.720
Full PageBooleanIf true, captures the entire scrollable page. If false, captures only the viewport.false

Outputs

OutputTypeDescription
DoneEventFires when the screenshot capture is complete.
ImageDataThe captured screenshot as a Jimp image object.
SuccessDataBoolean indicating whether the screenshot was captured successfully.

Runtime Behavior and Defaults

When triggered by the Run event, the node navigates to the specified URL using a headless browser, waits for the page to load, and captures a screenshot.

  • If Full Page is enabled, the entire scrollable content of the page is captured, not just the visible viewport. The resulting image height will vary based on the page content.
  • If Full Page is disabled (default), only the area defined by Width and Height is captured.
  • The Width and Height inputs define the browser viewport dimensions. If not provided, they default to 1280×720 pixels.
  • The resulting image is returned as a Jimp image object that can be processed by image manipulation nodes (such as Resize Image, Crop Image, or AI Vision Write) or saved to the library using the Write To Library node.
  • If the URL is invalid, empty, or the page fails to load, the Success output will be false and the Image output will contain an error message string.

Example

Capturing and Analyzing a Webpage:

  1. Create a Text node containing the URL https://example.com and connect it to the URL input.
  2. Set Width to 1920 and Height to 1080 for a full HD screenshot.
  3. Trigger the Run event to capture the screenshot.
  4. Connect the Image output to an AI Vision Write node to analyze the webpage content, or connect to a Write To Library node to save the screenshot as a JPEG file.