Managed browser

Managed browser lets an Autonomic Agent open an allowlisted website, sign in, and read or fill the page. A browser target is that site. An integration is a separate API connection, and this page does not select one. The agent calls browser tools. Passwords stay on the agent's Secrets tab.

Document information
FieldValue
Canonical URL/docs/07_ai-agents-and-mcp/31_managed_browser
Version (published date)2026-11-19
Tagsai, agents, browser, mcp

Set up an agent

Do these screens in order. Processes is not part of this setup. The agent's own process stays hidden.

  1. Browser targets — the site and the login steps.
  2. Agent → Browser targets — allow that target.
  3. Agent → Secrets — add each secret key from the login steps. Save the agent once if this tab asks you to.
  4. Agent → General — the mandate says what to do on the site after login.

Browser targets appears in the sidebar when managed browser is enabled for the workspace. A workspace on a free or starter plan does not have it.

Browser targets

Open Browser targets and choose Add target. Click a row to edit that target.

FieldWhat to enter
NameA name you will recognize on the agent, such as Supplier portal.
Base URLThe site origin, including https://.
Path prefixesOne path per line, such as /app or /reports. Leave this empty to allow any path on that site.
Login stepsThe sign-in sequence below. Leave the list empty when the site does not require a login.

Under Advanced:

  • Seconds the browser stays open after the last action — each action restarts this timer. When it ends, the browser closes and cookies are saved. The next action on the same session opens the browser again with those cookies. The default is 30. A value under 5 is treated as 5.

Save the target, then open it again. The login steps you saved are shown so you can change them.

After you save, allow this target on the agent and add each secret key on Secrets. This page does not contain the list of actions the agent takes after login. That belongs in the mandate.

Login steps

Each row is one step. The steps run in order when the target opens. Move a row with Up and Down.

StepWhat it doesWhat you fill in
gotoOpens a page before the later steps.The page URL
fillTypes into the element that matches the CSS selector.The selector, and either a Secret key or Plain text
clickClicks the element that matches the CSS selector.The selector
waitPauses before the next step.Milliseconds, at most 30000. The default pause is 1000
needs_humanStops the login and asks a person for a code, such as a one-time password.Nothing

Secret key is a name such as username or password. Add that same name on the agent's Secrets tab. The value is read when this agent opens the target. Do not type the password into the login step or into the mandate.

Plain text is for a value that is not a password.

Example for a site that posts a username and password, then asks for a one-time code:

OrderStepFields
1gotohttps://portal.example.com/login
2fillselector #email, secret key username
3fillselector #password, secret key password
4clickselector button[type='submit']
5wait2000
6needs_human

A public page that needs no login has an empty login list. The agent still has to be allowed to use the target.

Allow the agent

Open the agent, then Edit, then Browser targets. Move the target into Allowed browser targets and save. This list is the only place that chooses which agents may open the target. The browser target does not list agents.

An empty list means this agent cannot open a browser. Allow all browser targets grants every target in the workspace.

Add the secrets

Open the agent's Secrets tab.

If the tab says to save the agent once, save it from Edit, then return to Secrets. The tab names the secret keys used by the targets this agent is allowed to open. Add a secret for each name. After you save, the value is masked.

The login uses these values only when this agent opens the target.

Write the mandate

On General, the mandate is the task after login. Name the target and the outcome. Do not put passwords in the mandate.

Example:

Open the Supplier portal browser target. Read the open-orders table and record the order number, status, and total. Do not change the order.

The agent then uses these tools. It chooses the order during the run. You do not save that order as a script.

ToolWhat the agent uses it for
browser_open_targetOpens the allowed target and runs its login steps.
browser_snapshotReads the page and returns refs such as f1 and f2 for the fields and buttons.
browser_navigateOpens a path on the same site, such as /reports. The path must be allowed by the target.
browser_extract_tableReads up to 50 rows from the first table on the page.
browser_fillTypes into a ref from the latest snapshot. This is for page text, not the password.
browser_clickClicks a ref from the latest snapshot.
browser_selectChooses a dropdown option on a ref. The value is the option value or its label.
browser_submitClicks the page's submit button. The agent must snapshot after the latest fill, click, or select first.
browser_closeCloses the browser session.

A later wake continues the same browser session instead of opening a second one.

When a person must enter a code

A needs_human login step stops the recipe and leaves the session open. On the agent's Execution logs tab, the waiting run shows the browser session. Put the code in the note and resume. The agent types that code with browser_fill. There is no live view of the browser.

How long the browser stays open

Advanced on the browser target sets how many seconds the browser stays open after the last action. Each action restarts that timer. When it ends, cookies are saved and the browser closes. The next action on the same session opens the browser again and restores those cookies. The default is 30. A value under 5 is treated as 5.

A fixed page script on a process

Use this only when a process you create on Processes must repeat the same page actions every time. This is separate from an agent. Do not look for the agent's hidden process on Processes. It is not listed there.

On the process, add a step and set Step type to Browser session step. The step asks for:

  • Browser target — choose the target you created. The step runs that target's login steps first.
  • Actions — the fixed list below.
  • Keep the browser session open after the step — leave this off unless a later step must continue the same session.

The step does not ask for code.

ActionWhat it doesWhat you fill in
snapshotReads the page title and element refs (f1, f2, …). Take another snapshot after fill, click, or select before submit.Nothing
navigateOpens a path on the target site. A path without a leading / is treated as one. A full URL must stay on the target site, and the path must be allowed.Path, such as /reports
extract_tableReads up to 50 rows from the first table. Each row is the text of that row's cells.Nothing
fillTypes the value into the ref. Leave passwords on the target's login steps. {{field}} reads process input.Ref, value
clickClicks the ref.Ref
selectChooses the dropdown option.Ref, and the option value or label
submitClicks the page's submit button. A snapshot after the latest fill, click, or select is required first.Nothing
closeEnds the session. Actions after close do not run. Without close, the step closes the session when it finishes, unless you keep the session open.Nothing

A ref such as f2 comes from a snapshot of that page. The form does not create refs for you.

Example: search, then read the results table.

OrderActionFields
1snapshot
2fillref f2, value {{search_term}}
3selectref f3, value 2024
4clickref f4
5snapshot
6submit
7extract_table

A login step of type needs_human stops a process step. One-time codes stay on an agent run.