Skip to main content
Browser actions drive a headless Chromium instance: open a page, click an element, then read the rendered HTML or take a screenshot. Use them for pages that only make sense once JavaScript has run, where an HTTP request would return an empty shell.
All four actions need a chromium integration. See Configuration Reference for setup details.
The integration holds one browser session, shared by every action that uses it — across steps and across concurrent requests. chromium/body, chromium/click, and chromium/screenshot all act on whatever page chromium/navigate last opened, so keep these steps in order, don’t put them in a parallel group, and expect interference if two requests drive the same integration at once. Give a workflow that needs isolation its own Chromium integration.

chromium/navigate

Navigates the browser to a URL.

Browser

The Chromium session to drive.

URL

The address to open.

Output

{{ .step_id }} is an object:

Example


chromium/click

Clicks an element on the current page using a CSS selector.

Browser

The Chromium session to drive.

Selector

The CSS selector of the element to click. For example #submit-button, .my-class, or button[type='submit'].

Output

{{ .step_id }} is an object:

Example


chromium/body

Gets the rendered body HTML of the current page.

Browser

The Chromium session to drive.

Output

{{ .step_id }} holds the page’s rendered HTML.

Example


chromium/screenshot

Takes a full-page screenshot and returns it as a PNG.

Browser

The Chromium session to drive.

Output

{{ .step_id }} holds the screenshot as PNG bytes. It is a file, not text, so pass it to a step that takes a file — download to save it, or an agent’s fileUpload to show it to a model.

Example

Capture a page and save it to the workspace:

Common Patterns

Scrape a JavaScript-Rendered Page

Open the page, expand it, then read the rendered HTML:

Next Steps

HTTP Requests

Fetch a page without a browser when JavaScript isn’t needed.

System

Save captured files to the workspace.

Transformation

Parse scraped HTML with JavaScript.

Actions Overview

Learn the fundamentals of ServFlow actions.