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
| Input | Type | Description | Default |
|---|---|---|---|
| Run | Event | Triggers the screenshot capture. | - |
| URL | Text | The webpage URL to capture. | - |
| Width | Number | The width of the browser viewport in pixels. | 1280 |
| Height | Number | The height of the browser viewport in pixels. | 720 |
| Full Page | Boolean | If true, captures the entire scrollable page. If false, captures only the viewport. | false |
Outputs
| Output | Type | Description |
|---|---|---|
| Done | Event | Fires when the screenshot capture is complete. |
| Image | Data | The captured screenshot as a Jimp image object. |
| Success | Data | Boolean 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
falseand the Image output will contain an error message string.
Example
Capturing and Analyzing a Webpage:
- Create a Text node containing the URL
https://example.comand connect it to the URL input. - Set Width to
1920and Height to1080for a full HD screenshot. - Trigger the Run event to capture the screenshot.
- 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.