Skip to content

Commit cf6c7bb

Browse files
masnwilliamsclaude
andcommitted
restore install snippet on Create, broaden computer-use vs playwright copy
- Add the SDK install Info block back to Create (was on the old browsers/create-a-browser page). - Anchor the termination link to the automatic-deletion section. - Rewrite the "Computer use + playwright execution" intro: computer controls don't just lack DOM reads, they lack the whole programmatic surface (page.goto, file uploads, cookies, tab switching). Reach for playwright execution whenever you need any of that. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent cf48008 commit cf6c7bb

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

introduction/control.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ If you're reaching for Playwright, prefer the execution API over `connectOverCDP
161161

162162
## Computer use + playwright execution
163163

164-
The one thing computer controls don't do natively: read the DOM. The recommended pattern for agents is computer controls for interaction, [playwright execution](/browsers/playwright-execution) as a DOM-reading tool when the agent needs structured data.
164+
Computer controls drive the browser the way a person would — they don't speak the programmatic API surface. Anything you'd reach for the DOM or Playwright client for (reading text and attributes, `page.goto`, file uploads, cookie or storage access, switching tabs) belongs on the [playwright execution](/browsers/playwright-execution) side. The recommended pattern for agents is computer controls for interaction, playwright execution as a tool the agent can call when it needs structured data or a programmatic action.
165165

166166
<CodeGroup>
167167
```typescript Typescript/Javascript

introduction/create.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ Kernel browsers are sandboxed Chromium instances that boot in under 30ms. Your a
77

88
## Your first browser
99

10+
<Info>
11+
Install the Kernel SDK first:
12+
- Typescript/Javascript: `npm install @onkernel/sdk`
13+
- Python: `pip install kernel`
14+
</Info>
15+
1016
<CodeGroup>
1117
```typescript Typescript/Javascript
1218
import Kernel from '@onkernel/sdk';
@@ -75,7 +81,7 @@ kernel browsers delete <session-id>
7581
```
7682
</CodeGroup>
7783

78-
See [Termination & timeouts](/browsers/termination) for the full set of teardown options.
84+
See [Termination & timeouts](/browsers/termination#automatic-deletion-via-timeout) for the full set of teardown options.
7985

8086
## Full example
8187

0 commit comments

Comments
 (0)