Start browser for automation
Start Edge or Chrome with a debugging port and its own profile folder in the workspace, so this agent, later agents and Attach to open browser can all reach it. When a browser already listens on the port it is reused instead. A browser opened the usual way cannot be reached, because it has no debugging port; recent browsers also refuse a debugging port on the everyday profile, which is why a separate profile is used. The browser keeps running after the agent ends.
Command in the Browser toolkit · id ooa.browser/open_for_automation · 9 inputs, 7 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Browser | String | No | edge | Installed browser to start. |
| Port | Number | No | 9222 | Debugging port. 9222 is the one window choices look at by themselves. |
| Address (URL) | String | No | Page to open first. | |
| Profile folder | File | No | Profile folder for this browser (cookies, sign-ins). Default: .ooa/browser-profiles/<browser>-<port> in the workspace. | |
| Headless | Boolean | No | false | Run without a visible window. |
| Attach | Boolean | No | true | Also attach to it as the named session. |
| Session | String | No | browser | Session name. |
| Executable | File | No | Path of the browser program, when it is not installed in the usual place. | |
| Wait up to (milliseconds) | Number | No | 30000 | How long to wait for the browser to start, in milliseconds. |
Outputs
| Output | Type | What it is |
|---|---|---|
| title | String | Title of the current tab (when attached). |
| url | String | Address of the current tab (when attached). |
| tab_count | Number | Number of open tabs (when attached). |
| window | Dictionary | A window choice for this session, to pass as the window of element actions. |
| endpoint | String | Debugging address to attach to. |
| started | Boolean | True when a new browser was started; false when one already listened on the port. |
| pid | Number | Process id of the started browser, or 0 when an existing one was reused. |