browser tool gives an
agent a hosted browser it drives the way a person would: open the page, read
it, fill the form, press the button, read the confirmation.
What the agent gets
Add the Browser built-in to an agent (Tools, then “Add built-in”) and it receives a set of tools:
The agent reads pages as text, not pixels, so it works with any model you
have connected, and a form step costs a few thousand tokens rather than a
screenshot’s worth. After every action a screenshot is kept anyway. You see
them in the run’s trace, and the playground shows the latest one while the
agent works.
Allowed domains
The tool opens nothing until you list the domains it may visit. A domain matches itself and its subdomains, soportal.example.com covers
app.portal.example.com. Anything else, including private addresses, is
refused and the agent is told so. Set the list on the tool row in the agent
editor, or from the CLI:
Approvals
Before a click that commits something (pay, place an order, send, delete, accept terms), the run asks the decision model two questions about the control and the page: does this click commit an action that cannot be undone from the page, and does the page contain instructions aimed at the agent. If either is likely, the run pauses and a person answers. The question shows up wherever paused runs do: the playground, the run page, a Slack or Telegram channel, andcruqai runs. Reply yes to let the click
happen or no to stop it. The browser stays on the page while it waits, for
ten minutes by default, so the click lands on the form the agent filled.
consequential (the default, described above),
always (every click asks), and never.
Logins
The agent never sees a password. You store the login once, and the runtime types it into the form the agent points at:browser_fill_credential
tool that takes the name of the login and the two field refs:
Staying signed in
A profile keeps the cookies a run ended up with, so the next run starts already signed in and skips the login entirely:Downloading a file
browser_download takes the ref of a link and fetches it through the
session, so a statement behind a sign-in downloads the same way it would for
a person. Name a knowledge base and the file is filed there and indexed:
Download the January statement and file it in Statements.Files are capped at 4 MB, the same as an upload from the dashboard. A button that builds a file in JavaScript is not supported; the tool needs a link.
Limits and metering
A run can take at most 40 browser actions and hold the browser for 10 minutes unless the tool says otherwise. Browser time is Cruq AI’s own compute, so unlike model tokens it counts toward your plan: see the browser minutes on Plans & limits. Each run records its browser time next to its tokens, and the trace shows a screenshot per action.From the API and CLI
GET /v1/runs/{id}/screenshotslists a run’s screenshots;/{seq}returns one as PNG.PATCH /v1/tools/{id}with{ "builtin": { "key": "browser", "browser": { "allowedDomains": [...] } } }sets the tool’s settings.cruqai trace <run-id> --screenshots ./shotsdownloads them.

