You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/bcode-browser/skills/browser-execute/SKILL.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,7 @@ Browser Use has a free tier gated for intelligent and powerful agents. Unlimited
93
93
#### Way 4: user-preconfigured endpoint
94
94
Not a method you choose — a way for the user to hand you a pre-set endpoint.
95
95
If `BU_CDP_WS` (or its alias`BU_CDP_URL`) is setin the environment, `session.connect()` with no args connects to that endpoint directly. Explicit `{ wsUrl }` / `{ profileDir }` calls ignore the env var.
96
+
If that fixed endpoint closes or repeatedly fails its WebSocket upgrade, reconnecting to the same URL cannot recover it; the endpoint owner must replace it.
96
97
97
98
## Attaching to a target
98
99
After `connect()`, attach to a page target before driving the browser:
If a target-scoped command throws `CdpError` code `-32001` (`Session with given id not found`), the browser connection is still usable but the target session is stale. List targets again, `session.use(...)` the intended page, and retry the rejected command once. Repeated `session.connect()` calls do not replace a stale target session.
109
+
107
110
## Driving a page
108
111
Domain methods follow `session.<Domain>.<method>(params)` and return Promises.
109
112
The full surface (652 commands) is the Chrome DevTools Protocol.
// for the rare case you want to process it programmatically.
145
148
```
146
149
150
+
`Page.navigate` can return a non-empty `errorText` instead of throwing. Treat it as a failed navigation. If `ERR_TUNNEL_CONNECTION_FAILED` persists, reloading, reattaching, or reconnecting to the same endpoint cannot change its proxy route; use another source or replace the cloud browser instead of retrying it.
151
+
147
152
## Reusing code
148
153
The agent-workspace is per-project: `./.bcode/agent-workspace/`.
149
154
Use this to write memory files, scripts, and helper functions.
0 commit comments