Browser
Read browser page (browser.read) and Act in browser (browser.act) read and act in a real browser on the workflow's Kubernetes runtime, or, on a self-hosted installation that turned on Docker desktops (ROLLOUT_DESKTOP_DOCKER), on its Docker runtime, or in Chrome on a registered device (see Run on). Use them as workflow steps or add them as Tools on an AI Agent.
Graph steps share one browser per run: one step navigates, and later steps read or act on the same page. Connect dependent steps in order. The browser opens on the first call and stays open between steps, until the run ends, 30 minutes without a call, or 4 hours in all. It does not survive a workflow suspension yet; resumed steps open a fresh browser.
Each AI Agent step keeps its own separate browser session, opened when the agent first uses it and closed when that step ends. Both forms use headful Chrome in an isolated pod, or a container on Docker. The first step also waits for provisioning; each browser node allows 2 minutes, with up to 45 seconds for browser calls after the session is ready (a script gets more; see Scripts). Set to Rollout, other runtimes can't use these nodes; set to a registered device, they run on any runtime. On Docker the installation runs one browser at a time. An AI Agent step that runs Claude Code, Codex or Copilot on a registered device can use them as Tools too (over SSH, not yet), with three differences: the step holds its run until the CLI ends instead of pausing while it works, the CLI runs one browser call at a time (a second call made while one runs is answered that nothing ran), and only Claude Code and Codex see screenshots: up to two per call, each at most 384 KiB, 1568 px a side and 1.15 megapixels, within what the CLI can take in one output line (Copilot gets the page as text). A screenshot the CLI sees goes to its vendor and stays on the device, where Claude Code and Codex save it in their own session files. As in any workflow, a browser Tool call has about 60 seconds. On any agent, a hand_off needs a page open first: ask before the agent opened one and nothing is handed off.
Run on
Run on chooses where a step's or Tool's browser runs:
- Rollout (the default) runs it as described above.
- Registered device runs it in Chrome on one of your computers, through the Rollout desktop app with its Browser capability on. Pick the device as for any device step: the workflow's default device, any available one, or a specific one. If no device is available fails the step at once, or queues it until a device connects or its browser is free, within the step's 2 minutes.
A device hosts one browser at a time, and a run keeps one browser per device choice: later steps set to a device continue on the device the run's browser is already on. A browser on your computer reaches that computer's localhost and local network, which a hosted browser never does. The workflow's own Run on setting is for Shell steps; browser steps don't follow it.
All of an AI Agent's browser Tools must run on the same place, since the agent has one browser. A browser Tool on a device can't also name a saved session; a workflow step can, when the device uses a temporary profile (Rollout Desktop).
If someone uses that Chrome window at the computer, they come first. The run view says A person is using this browser, remote control isn't offered until they finish, and a saved session isn't written back in the meantime: the step succeeds with a warning that says so. A save held off at run end is logged, not shown on a step. The agent's own commands keep running.
Watch the browser
While a browser is open, the run panel shows its screen live. Select the AI Agent step to see that step's browser above its tabs, or select Run input and result to see every open browser in the run, including the one graph steps share. The picture appears once the browser starts and goes when it closes; when the stream ends, the last picture stays under Session ended. Anyone who can read the run can watch, and watching doesn't keep an idle browser open. It needs a browser with WebCodecs, such as current Chrome or Edge.
How the agent uses them
- Act in browser with a
navigateaction opens a page. - Read browser page returns a snapshot: the page as an accessibility tree in which each element the agent can use carries a ref such as
[ref=e12], plus the snapshot'ssnapshot_id. - Act in browser clicks, fills or presses on those refs, passing the
snapshot_idthey came from, and returns a fresh snapshot.
A ref is valid only with the latest snapshot of its tab. After the page changes, the agent reads it again; an old ref fails with stale_snapshot instead of touching the wrong element.
Read browser page
| Input | Meaning |
|---|---|
What (what) |
snapshot (default), text or screenshot |
JPEG quality (quality) |
For screenshots: integer 30–90, default 70 |
Full page (full_page) |
For screenshots: true captures the whole page; default false captures the viewport |
Element ref (ref) and Snapshot id (snapshot_id) |
For text: one element from the latest snapshot |
Selector (selector) |
For text, instead of a ref: a Playwright selector |
Snapshot and text reads return Page (page): the url, title, snapshot or text, the snapshot_id, and truncated when the content was cut to fit the agent's context (about 8 KB).
A screenshot read returns Screenshot (screenshot): a JPEG file reference with file_name, mime_type, size, content_digest, width and height. The step panel and canvas card show the image. Connect this output to a later node's file input to use it. Screenshots are limited to 5 MiB and are captured without masking pixels.
Screenshot files expire after 7 days by default, even while the run remains in history. A session workflow's snapshot retention setting can change this to 1–30 days. These reads leave the browser page unchanged.
Act in browser
Actions (actions) is an ordered list of up to 10 actions. Each has a verb and what that verb needs:
| Verb | Needs |
|---|---|
navigate |
url |
back, forward, reload |
nothing |
click |
a target: ref with snapshot_id, or selector |
fill |
a target and value |
select |
a target and values |
press |
key, such as Enter or Control+A, and optionally a target |
scroll |
dx/dy, or a target to scroll into view |
wait |
ms, or a selector to wait for |
click_at |
x and y on the screen |
hand_off |
reason: what a person should do in the page. The only action of its call |
The actions run one at a time and stop at the first one that doesn't succeed. When all succeed, the step returns Completed (completed), Results (results, one per action) and Page (page), a fresh snapshot. When one fails, the step fails with the progress in its details: how many actions completed, and which one stopped and why.
Nothing is retried. If the reply to an action is lost, Rollout asks the browser what happened under the same action id; it never sends the action again. An action whose outcome is still unknown is reported as possibly run, so the agent reads the page before trying again. A workflow step with Retry when the call may have gone through turned on can't be saved or published, and one saved before is refused before it starts, actions and scripts alike. A person can still run a step again (see Known behaviour).
Hand off lets the agent ask a person for help when only a person can continue: a code sent to a phone, a CAPTCHA, a sign-in. The agent calls hand_off with a reason, and the step waits with its browser open. The request appears in the Inbox as "Take over the browser" with the reason, for the people who can approve this Tool's calls. Answer Done when the page is ready for the agent, or Couldn't finish. The request shows the agent's browser live, so you can see what it's stuck on. Click the picture, or select Take control under it, to use the browser yourself: your mouse, keyboard and pasted text go to the agent's browser, and what you copy there stays there. One person controls it at a time; someone else who can answer the request can take over. Press Ctrl+Alt+Enter (Control+Option+Return on a Mac) or select Stop to get your keyboard back. The agent waits until the request is answered, and control ends with the answer. Add a note with your answer if it helps: the agent reads it. After Done the agent gets a fresh snapshot of the page and your note, and carries on; after Couldn't finish it's told the hand-off was declined, with your note. A hand-off always waits for an answer, even on a Tool set to run without approval, and it expires with the browser session. It's answered in the Inbox, not from a desktop app card. Graph steps can't hand off.
Allowed actions limits what the agent may do. Every verb except click_at is allowed by default, hand_off included; a Tool saved before hand_off existed keeps working exactly as it was reviewed, without it: tick it in the Tool's settings and save to allow it; click_at clicks a screen position instead of an element, so allow it only when refs aren't enough. Only you set it, in the Tool's settings.
Scripts
When a task is the same every time, write it once as a Playwright script and let Act in browser run that in place of actions. Set Script in the step's or Tool's settings:
await page.goto(inputs.url);
await page.getByLabel("Invoice number").fill(inputs.invoice);
await page.getByRole("button", { name: "Search" }).click();
return { status: await page.getByTestId("status").innerText() };
The script is the body of an async function of page (the browser's current tab), context, inputs and output. In a workflow step it has about 100 seconds, less the time the browser took to open. As an AI Agent Tool a call is limited to 60 seconds in all, which leaves the script about 40. The 10 seconds before that are kept for storing the files it saved. What it returns must be JSON.
To hand back a file of any type, save it: await output.save("report.pdf", bytes, { mime: "application/pdf" }) takes bytes, text or a stream and returns a handle, { $file: 0 }, to put in what the script returns. Bytes it returns, such as await page.screenshot(), are saved the same way, and a PNG or JPEG keeps its type. A script can save up to 10 files, 25 MiB each and 50 MiB together; a file over a limit is refused the moment it passes it, and output.save throws an error the script can catch. A response the script reads with page.request or fetch(...).arrayBuffer() is already whole in its memory before output.save can refuse it, so pass a large download as a stream.
A file the page downloads, from a link, a button or a form, reaches the script as Playwright's own download. Wait for it while you act, then save it:
const [download] = await Promise.all([
page.waitForEvent("download"),
page.getByRole("button", { name: "Export CSV" }).click(),
]);
await output.save(download.suggestedFilename(), await download.createReadStream());
An address that answers with a file makes page.goto throw "Download is starting", as Playwright always does; the download goes on, so catch it: const [download] = await Promise.all([page.waitForEvent("download"), page.goto(inputs.url).catch(() => {})]);.
A script can download up to 10 files, 25 MiB each and 50 MiB together. A download past a limit, or one that makes no progress for 10 seconds, is cancelled, and await download.failure() says "canceled". A file that states its size is refused before it arrives; one that doesn't is checked as it arrives, so a very fast one can briefly take more of the browser's memory before it is cancelled. Downloads land in a folder of the script's own that goes when the script ends: a download it doesn't save with output.save is gone. download.saveAs(path) works for a path inside that folder (a relative path is) and throws for any other. Only a script can download: an action that downloads a file outside a script is refused, as before. Allowed origins bounds where the script's pages navigate, not what they fetch or download.
The browser's disk is its memory. A script that writes files itself, with Node's own file functions and outside these limits, uses the browser session's memory, and past it the session ends.
| Setting | Meaning |
|---|---|
Script (script) |
The source. Only you set it: it is not an input, and an agent can't supply or change it |
Script inputs (script_inputs) |
An object the script reads as inputs. In a workflow, write it with {{ }} values or wire it; on a Tool, fix it or let the agent fill it |
Secrets (secrets) |
Names of workspace secrets the script may read, as inputs.secrets.NAME. It reads no secret that isn't listed |
Input files (files) |
Up to 10 files the script reads as inputs.files, 25 MiB each and 50 MiB together. In a workflow, wire them or write {{ }}; on a Tool the agent picks none unless you make this a slot |
A step with a script takes no actions; set one or the other. On a Tool, leave Actions out of what the agent fills.
Input files are handed to the browser before the script starts, and the script finds each in inputs.files as { path, name, mime, size }, ready for page.setInputFiles(selector, inputs.files[0].path) or for reading. A name longer than 200 bytes, one with characters a file name can't keep, or one that holds a workspace secret is file-<n>.<ext>, and a type that isn't a known one is application/octet-stream. A file can be one the run may read (a workspace file, or one a chat sender gave this run) or one this run produced, such as an earlier step's screenshot or script file; a file of another workspace, or one the run can't open, stops the step before anything runs, and so does a file that isn't the one its reference names. The browser keeps the files after the script ends, so a later step can still submit a form a script filled in, until the session needs the room or ends.
The step returns Script result (script): value (what the script returned) and logs (its console output, up to 16 KB), and Files (files): the files it saved, as file references a later node's file input takes, shown on the step. A handle in value becomes {"$file": n}, its place in Files, or {"$file": null, "error": "not_stored", "name": ...} for a file that couldn't be stored. The files are kept like screenshots: 7 days by default, or a session workflow's snapshot retention. In the viewer a file opens in place only as an image, a PDF, plain text, audio or video; any other type, an HTML page included, downloads. An agent's Tool result is cut to fit its context (about 8 KB): each file reference in it is whole, and files that don't fit are left out of it and counted in files_omitted (a handle to one reads "error": "omitted"); a workflow step keeps up to 256 KB.
The script is used exactly as written. {{ }} is not resolved inside it. A script that contains one is reported as an error: the workflow can't be published, or the Tool saved, until it is gone, so nothing is left looking like a value that is never filled in: pass values through Script inputs. Where the code itself needs those characters, write \{\{ inside a string or regular expression, which JavaScript reads as {{.
A script is trusted like a Shell step's script. It can do anything in that browser that Playwright can: read every page and cookie of the session, including a saved session's, and send them anywhere the browser can reach. Allowed origins and a saved session's sites still bound where it can navigate. Review it as you would code that runs with your account. An agent can run a script Tool, with the inputs you let it fill, but can never write one.
A script runs once. If it throws, times out or its reply is lost after it started, the step fails as possibly run, and Rollout doesn't run it again. As with actions, a step that has Retry when the call may have gone through turned on is refused before it starts. A script that never started (it doesn't parse, or the browser wasn't ready) fails with nothing run.
When the script ends, the tabs it opened are closed and its connection to the browser is cut. JavaScript it left running inside a page it didn't open, such as a timer set with page.evaluate, keeps running until that page navigates or closes.
The secrets you list, and a saved session's values, are replaced with [REDACTED] wherever they appear as plain text in the value, the logs, an error or the browser's events. A secret must be at least 4 characters. The same exclusions apply as for a saved session: a value in another form (encoded or split up), and anything visible in a returned image. A file's name is checked too, but its contents are not: a secret the script writes into a file is in that file. A script that sends a secret to a site has sent it.
Sensitive result
Mark the step's Script result output (or an output you read from it) Sensitive under Outputs. In a published workflow's run, the result is then held out of run history and only a Run shell script step on a remote host over SSH can take it, on its stdin, input or files. The browser takes no further command in that run, so make the step that exports the value your run's last browser step. A sensitive script that fails says only why (a code), and one whose result can't be kept out of history doesn't run. A step with no script that has the mark fails with "A sensitive output was not produced": the marked output is never filled from another one. See Security for what this does and doesn't protect.
Known behaviour
- Test runs execute a draft's script. Testing a step or a workflow from the editor, or through the API or MCP, runs the script as it is in the draft, for real, before anything is published. Anyone, or any agent, acting with an editor's access can change a draft and test it, and can publish it.
- "Run it again" runs it again. If a run is interrupted while an Act in browser step is in flight, actions or a script, and you choose Run it again in recovery, the step starts a second time, even though the first may have finished. Retrying a failed run does the same: its Act in browser steps run again in the new run, whatever they did in the failed one. Check the site before you choose either.
Allowed origins
Both Tools have Allowed origins, which only you set. Empty lets the agent open any public site. Set it to origins such as https://example.com or https://*.example.com, and the browser refuses to open any other site in a tab, whether the agent navigates there, clicks a link or follows a redirect. The refusal is recorded.
Local files, browser-internal pages, loopback addresses and cloud metadata addresses are refused whatever this says.
Saved session
Both nodes have an optional Saved session: a Connection of type Browser session, created under Settings → Connections with a name and the sites it covers. It keeps what the browser holds for those sites (cookies and site storage), so a later run opens the browser where an earlier one left off.
A step or Tool with a saved session opens its browser on that Connection: the browser loads the state saved under its Session key, if there is one, and stays on the Connection's sites. Allowed origins can narrow that further and never widens it. After each call, whether it worked or failed, a changed state is saved back, at most once a minute, and once more when the browser is closed at the end of its step or run. Nothing is saved while a person controls the browser. When two runs use one key at the same time, the first to save wins and the other stops saving; a site that issues single-use tokens may end one of their sessions.
Session key picks which saved state the browser uses. Leave it empty for the Connection's one shared state. Any other text is a state of its own, up to 200 bytes. In a workflow it takes {{ }}: {{trigger.workflow.id}} keeps a state per workflow, {{trigger.run.run_id}} one per run and customer-{{trigger.output.id}} one per customer. A run keeps one browser for its whole life, so its steps already share what they do without a key per run. On a Tool the key is text you set, and the agent can't see or change it. A Connection holds at most 20 keys and 1 MB per state; a save past either is refused and logged, and that browser stops saving. A key nothing saved to for 30 days is dropped at the Connection's next save. The shared state is kept.
The agent can do whatever the saved state lets the browser do on those sites, such as act as the account a person signed in with, and a page it reads can tell it to. Limit it with Allowed actions, approvals, and by listing only the sites the task needs. People who can watch the run see the pages.
The saved cookies and site storage are not given to the agent, and where a page prints one of those values as plain text, Rollout replaces it with [REDACTED] in what the agent reads and in the run's records. This applies to values of 8 characters or more. Cookies the site sets while the run works are covered too, as they are when Rollout checks them before each result. That is a safeguard, not a guarantee. These are not replaced: a value under 8 characters; a value shown in another form (encoded, or split up); a cookie the site sets and then changes or removes before the next result; anything the site writes to its localStorage or IndexedDB after the browser opened; and anything visible in a screenshot.
A new Connection reads "No saved state", and a browser that uses it starts with nothing. Whatever it then comes to hold for the Connection's sites is saved, whoever made it: a person who signed in during a hand-off, a script or the agent itself. Rollout can't tell one kind of state from another, and saves any cookies or site storage the browser has for those sites. A graph step runs on whatever its key holds, nothing included.
Clear saved state, in the Connection's menu, clears every key. To clear one, open the Connection, expand Saved state, select Show session keys, then Clear beside it. Later runs start with nothing under what you cleared, browsers already running keep what they loaded until they close but no longer save it, and what a site itself remembers lasts until it ends there.
Use one saved session and key per browser. Graph steps of a run share one browser, and so do the browser Tools of one AI Agent step, so all of them should name the same saved session and key, or none. A step or Tool that names another, names one after the browser was used without it, names none on a browser that has one, or has a key over 200 bytes, is refused with browser_saved_session_unavailable and nothing runs. A Tool reviewed before the setting existed keeps working as reviewed, with none.
Approvals and limits
As an AI Agent Tool, Act in browser changes things, so like any Tool with side effects it asks for approval by default. The agent's browser waits through the approval: once approved, the action runs on the same page. If the session ended while waiting, the agent continues on a fresh browser and the step shows a warning. A session ends after 30 minutes without a browser call (except while held for Tool approval), and after 4 hours in any case; an approval waiting on that browser expires a minute before it does. Graph steps use the workflow's own approval steps when approval is needed; suspension retires their browser.
The browser runs from Rollout's datacenter addresses, which some sites treat as automated traffic. When a site asks for a CAPTCHA or a code sent to a phone, the agent can hand off to a person. You're responsible for following the terms of the sites your workflows use.