browser_run_flow
Run a multi-step flow in the tenant's hosted browser — this is the tool for portals that have no API and need a login. Steps are NAMED, not JavaScript: goto (url), type (selector + value OR secret), click (selector, optional), wait_for (selector or ms, optional), read (selector + as, optional attribute), count (selector + as). Passwords are NEVER passed in: give secret: "<name>" on a type step and list the name under secrets as { name: { provider, field } } — the value is fetched from the tenant vault at runtime, never appears in the call, the generated code or the result. Every goto address is checked BEFORE the browser starts; internal and cloud-metadata addresses are refused. Optional stealth asks Browserless to reduce automation signals; it does not solve or bypass CAPTCHA challenges. Returns what the read/count steps collected plus a per-step trace, with any secret value blanked out. Use browser_fetch_page instead when one page and no login is enough.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"steps": "<steps>"
},
"name": "browser_run_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | The steps in order. At least one goto. | |
| secrets | No | Name -> { provider, field } from the tenant vault, e.g. { "passwort": { "provider": "freelancermap", "field": "password" } }. | |
| stealth | No | Enable Browserless stealth launch mode. Does not solve CAPTCHA challenges. |