Skip to content

Commit d095905

Browse files
authored
docs(mcp-server): update tools and usage examples (#81)
1 parent e68644d commit d095905

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

reference/mcp-server.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "MCP Server"
33
description: "Access Kernel's cloud-based browsers via MCP"
44
---
55

6-
Our Model Context Protocol (MCP) server lets any compatible AI model or agent launch Chromium browsers, inject context, evaluate JavaScript, and stream DOM snapshots from Kernel's cloud platform via a single secure endpoint.
6+
Our Model Context Protocol (MCP) server lets any compatible AI model or agent launch Chromium browsers, execute Playwright code, capture video replays, and automate web interactions from Kernel's cloud platform via a single secure endpoint.
77

88
## Setup Instructions
99

@@ -180,24 +180,29 @@ Configure these values wherever the tool expects MCP server settings.
180180
## Tools
181181

182182
### Browser Automation
183+
183184
- `create_browser` - Launch a new browser session with options (headless, stealth, persistence, timeout, profile)
184185
- `get_browser` - Get browser session information
185186
- `list_browsers` - List active browser sessions
186187
- `delete_browser` - Terminate a browser session
188+
- `execute_playwright_code` - Execute Playwright/TypeScript code in a fresh browser session with automatic video replay and cleanup
187189

188190
### Profile Management
191+
189192
- `setup_profile` - Create or update browser profiles with guided setup process
190193
- `list_profiles` - List all available browser profiles
191194
- `delete_profile` - Delete browser profile permanently
192195

193196
### App Management
197+
194198
- `list_apps` - List apps in your Kernel organization with optional filtering
195199
- `invoke_action` - Execute actions in Kernel apps
196200
- `get_deployment` - Get deployment status and logs
197201
- `list_deployments` - List all deployments with optional filtering
198202
- `get_invocation` - Get action invocation details
199203

200204
### Documentation & Search
205+
201206
- `search_docs` - Search Kernel platform documentation and guides
202207

203208
## Resources
@@ -235,6 +240,15 @@ Assistant: I'll create a persistent, stealth-enabled browser that maintains stat
235240
[Uses create_browser tool with persistence and stealth options]
236241
```
237242

243+
### Execute Playwright code dynamically
244+
245+
```
246+
Human: Go to example.com and get me the page title
247+
Assistant: I'll execute Playwright code to navigate to the site and retrieve the title.
248+
[Uses execute_playwright_code tool with code: "await page.goto('https://example.com'); return await page.title();"]
249+
Returns: { success: true, result: "Example Domain", replay_url: "https://..." }
250+
```
251+
238252
### Set up browser profiles for authentication
239253

240254
```

0 commit comments

Comments
 (0)