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
Remove per-call replay recording from execute_playwright_code
Each execute_playwright_code call wrapped the run in replays.start /
replays.stop and validated existing sessions with a browsers.retrieve,
adding three round trips around the one useful call. In a tight agent
loop that latency lands on the critical path every turn.
Drop the replay start/stop and the pre-execute retrieve; execute
surfaces a not-found error on its own. Existing-session calls now make
a single round trip. Video replay is handled separately via managed
replay controls.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/lib/mcp/tools/playwright.ts
+11-44Lines changed: 11 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ export function registerPlaywrightTool(server: McpServer) {
6
6
// execute_playwright_code -- Run Playwright/TypeScript code against a browser
7
7
server.tool(
8
8
"execute_playwright_code",
9
-
'Execute Playwright/TypeScript automation code against a Kernel browser session. If session_id is provided, uses that existing browser; otherwise creates a new one. Returns the result with a video replay URL. Auto-cleans up browsers it creates. Use computer_action with action "screenshot" instead of page.screenshot() in code.',
9
+
'Execute Playwright/TypeScript automation code against a Kernel browser session. If session_id is provided, uses that existing browser; otherwise creates a new one. Auto-cleans up browsers it creates. Use computer_action with action "screenshot" instead of page.screenshot() in code.',
10
10
{
11
11
code: z
12
12
.string()
@@ -30,49 +30,27 @@ export function registerPlaywrightTool(server: McpServer) {
0 commit comments