Attach to open browser
Connect to an Edge or Chrome that is already running, through its DevTools debugging port, and use it as a named session. Only a browser started with a debugging port can be reached (use Start browser for automation, or start it with --remote-debugging-port); a browser opened the usual way has none. Closing the session later only disconnects; the browser stays open.
Command in the Browser toolkit · id ooa.browser/attach · 4 inputs, 4 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Endpoint | String | No | http://127.0.0.1:9222 | Debugging address of the browser: http://host:port, just the port, or a ws:// DevTools address. |
| Browser | String | No | Which browser it is; found out from the browser itself when left empty. Used by window choices that name a browser. | |
| Session | String | No | browser | Session name. |
| Wait up to (milliseconds) | Number | No | 30000 | How long to wait for the connection, in milliseconds. |
Outputs
| Output | Type | What it is |
|---|---|---|
| title | String | Title of the session's current tab. |
| url | String | Address of the session's current tab. |
| tab_count | Number | Number of open tabs in the browser. |
| window | Dictionary | A window choice for this session, to pass as the window of element actions. |