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
soften control framing, lead playwright execution with run-from-anywhere
- Home page Control card now mentions playwright execution alongside the
other three (was drifting from the page itself).
- Reframe the Control intro from "four control primitives" to "four ways
to drive a session" — playwright execution is a delivery mode on top of
CDP, not a separate protocol.
- Rewrite the playwright execution tab + bullets around the actual pitch:
run any Playwright code from anywhere, no install, no Chromium, no CDP
connection to manage.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: introduction/control.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "Control"
3
3
description: "Drive the browser with computer use, playwright execution, CDP, or WebDriver BiDi"
4
4
---
5
5
6
-
Kernel browsers expose four control primitives. For agents, we recommend [computer use](/browsers/computer-controls) or [playwright execution](/browsers/playwright-execution) — both run co-located with the browser and avoid the bot-detection surface a direct CDP connection introduces.
6
+
Kernel browsers expose four ways to drive a session. For agents, we recommend [computer use](/browsers/computer-controls) or [playwright execution](/browsers/playwright-execution) — both run co-located with the browser and avoid the bot-detection surface a direct CDP connection introduces.
7
7
8
8
<Tabs>
9
9
<Tabtitle="Computer Use">
@@ -50,7 +50,7 @@ Kernel browsers expose four control primitives. For agents, we recommend [comput
50
50
</CodeGroup>
51
51
</Tab>
52
52
<Tabtitle="Playwright Execution">
53
-
Run arbitrary Playwright code in a fresh context inside the browser's VM. No local Playwright install, no CDP connection to manage — your code runs co-located with the browser and returns structured data back to your agent. Ships with [Patchright](/browsers/bot-detection/stealth) by default.
53
+
Run any Playwright code from anywhere — no local Playwright install, no Chromium download, no CDP connection to manage. Your code executes inside the browser's VM with the full Playwright API in scope and returns structured data back to your agent. Ships with [Patchright](/browsers/bot-detection/stealth) by default.
54
54
55
55
<CodeGroup>
56
56
```typescript Typescript/Javascript
@@ -151,10 +151,10 @@ Kernel's computer controls are built to match how computer-use models were train
151
151
152
152
## Why playwright execution over a direct CDP connection
153
153
154
-
If you're reaching for Playwright, prefer the execution API over `connectOverCDP`. Your code runs in the same VM as the browser, with the same Playwright API surface you already know.
154
+
If you're reaching for Playwright, prefer the execution API over `connectOverCDP`. Same Playwright API you already know, none of the setup.
155
155
156
-
-**Co-located.** No network hop between your code and the browser — faster, fewer flakes.
157
-
-**No local install.**No `playwright` package to version-pin, no CDP connection to manage.
156
+
-**Run from anywhere.** No `playwright` package to version-pin, no Chromium download, no CDP connection to manage. Send the code, get the result.
157
+
-**Co-located with the browser.**Code runs in the same VM as the browser — no network hop between your script and the page, fewer flakes.
158
158
-**Patchright by default.** Hardened against bot detection out of the box.
159
159
-**Full Playwright API.**`page`, `context`, and `browser` are all in scope. Anything Playwright can do — DOM queries, file uploads, full-page screenshots — works here.
160
160
-**Returns values.**`return` from your code and the result comes back in the response. Easy to use as an agent tool.
0 commit comments