Skip to content

Commit e23e7d1

Browse files
committed
docs: Fix template names, split mixed-context code, link MCP docs
1 parent 6b8fd28 commit e23e7d1

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

docs/use-cases/remote-browser.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,19 @@ sandbox.commands.run(
6565
```
6666
</Step>
6767

68-
<Step title="Get the public URL and browse with Kernel">
69-
E2B exposes any sandbox port as a public HTTPS endpoint. A script inside the sandbox creates a Kernel browser, connects via Playwright, and screenshots each route.
68+
<Step title="Get the public URL">
69+
E2B exposes any sandbox port as a public HTTPS endpoint. Pass this URL to the browsing script that runs inside the sandbox.
7070

7171
```python
7272
host = sandbox.get_host(8000)
7373
app_url = f"https://{host}"
74+
```
75+
</Step>
7476

75-
# This runs inside the sandbox
77+
<Step title="Browse with Kernel">
78+
Inside the sandbox, create a Kernel browser and connect via Playwright to screenshot each route. This code runs as a script inside the sandbox — it uses the Kernel SDK and Playwright that come pre-installed in the `kernel-browser` template.
79+
80+
```python
7681
from kernel import Kernel
7782
from playwright.sync_api import sync_playwright
7883

@@ -410,7 +415,7 @@ if __name__ == "__main__":
410415

411416
## Kernel MCP tools
412417

413-
The [Kernel MCP Server](https://mcp.onkernel.com/mcp) exposes 10 tools over the Model Context Protocol, letting MCP-compatible clients manage browsers without any SDK installation.
418+
The [Kernel MCP Server](https://mcp.onkernel.com/mcp) exposes 10 tools over the [Model Context Protocol](https://modelcontextprotocol.io/) (MCP), letting MCP-compatible clients manage browsers without any SDK installation.
414419

415420
```bash
416421
kernel mcp install --target <target> # Supports Cursor, Claude Desktop, VS Code, etc.

0 commit comments

Comments
 (0)