Skip to content

The agent that grows with you

test(prompt-surface): re-render after browser_cdp drops its Camofox sentence

Teknium4c7bdf5d826b
diff --git a/tests/fixtures/prompt_surface/surfaces.json b/tests/fixtures/prompt_surface/surfaces.json
index c302ca050cf..738db8b4aee 100644
--- a/tests/fixtures/prompt_surface/surfaces.json
+++ b/tests/fixtures/prompt_surface/surfaces.json
@@ -5,7 +5,7 @@
"stable": 1935,
"volatile": 1813
},
- "tool_tokens": 11532,
+ "tool_tokens": 11520,
"tools": [
"browser_cdp",
"browser_dialog",
@@ -38,7 +38,7 @@
"stable": 1445,
"volatile": 1813
},
- "tool_tokens": 11532,
+ "tool_tokens": 11520,
"tools": [
"browser_cdp",
"browser_dialog",
@@ -71,7 +71,7 @@
"stable": 1866,
"volatile": 1811
},
- "tool_tokens": 11532,
+ "tool_tokens": 11520,
"tools": [
"browser_cdp",
"browser_dialog",
@@ -104,7 +104,7 @@
"stable": 2640,
"volatile": 1809
},
- "tool_tokens": 11688,
+ "tool_tokens": 11675,
"tools": [
"browser_cdp",
"browser_dialog",
@@ -137,7 +137,7 @@
"stable": 1445,
"volatile": 1813
},
- "tool_tokens": 11532,
+ "tool_tokens": 11520,
"tools": [
"browser_cdp",
"browser_dialog",
@@ -170,7 +170,7 @@
"stable": 1317,
"volatile": 1813
},
- "tool_tokens": 11532,
+ "tool_tokens": 11520,
"tools": [
"browser_cdp",
"browser_dialog",
@@ -203,7 +203,7 @@
"stable": 1579,
"volatile": 1814
},
- "tool_tokens": 12166,
+ "tool_tokens": 12154,
"tools": [
"browser_cdp",
"browser_dialog",
@@ -237,7 +237,7 @@
"stable": 1349,
"volatile": 1814
},
- "tool_tokens": 11532,
+ "tool_tokens": 11520,
"tools": [
"browser_cdp",
"browser_dialog",
@@ -270,7 +270,7 @@
"stable": 1382,
"volatile": 1814
},
- "tool_tokens": 11532,
+ "tool_tokens": 11520,
"tools": [
"browser_cdp",
"browser_dialog",
diff --git a/tests/fixtures/prompt_surface/tools/browser_cdp.json b/tests/fixtures/prompt_surface/tools/browser_cdp.json
index dc660d1f5a6..2d8396e0278 100644
--- a/tests/fixtures/prompt_surface/tools/browser_cdp.json
+++ b/tests/fixtures/prompt_surface/tools/browser_cdp.json
@@ -1,5 +1,5 @@
{
- "description": "Send a raw Chrome DevTools Protocol (CDP) command. Escape hatch for browser operations the other browser tools don't cover.\n\n**Requires a reachable CDP endpoint.** Available when the user has run '/browser connect' to attach to a running Chrome, Brave, Chromium, or Edge browser, or when 'browser.cdp_url' is set in config.yaml. Not currently wired up for cloud backends (Browserbase, Browser Use, Firecrawl) — those expose CDP per session but live-session routing is a follow-up. Camofox is REST-only and will never support CDP. If the tool is in your toolset at all, a CDP endpoint is already reachable.\n\n**CDP method reference:** https://chromedevtools.github.io/devtools-protocol/ — use an available documentation lookup or extraction tool on a method's URL (e.g. '/tot/Page/#method-handleJavaScriptDialog') to look up parameters and return shape.\n\n**Common patterns:**\n- List tabs: method='Target.getTargets', params={}\n- Handle a native JS dialog: method='Page.handleJavaScriptDialog', params={'accept': true, 'promptText': ''}, target_id=<tabId>\n- Get all cookies: method='Network.getAllCookies', params={}\n- Eval in a specific tab: method='Runtime.evaluate', params={'expression': '...', 'returnByValue': true}, target_id=<tabId>\n- Set viewport for a tab: method='Emulation.setDeviceMetricsOverride', params={'width': 1280, 'height': 720, 'deviceScaleFactor': 1, 'mobile': false}, target_id=<tabId>\n\n**Usage rules:**\n- Browser-level methods (Target.*, Browser.*, Storage.*): omit target_id and frame_id.\n- Page-level methods (Page.*, Runtime.*, DOM.*, Emulation.*, Network.* scoped to a tab): pass target_id from Target.getTargets.\n- **Cross-origin iframe scope** (Runtime.evaluate inside an OOPIF, Page.* targeting a frame target, etc.): pass a frame_id from Page.getFrameTree. This routes through the CDP supervisor's live connection — the only reliable way on Browserbase where stateless CDP calls hit signed-URL expiry.\n- Each stateless call (without frame_id) is independent — sessions and event subscriptions do not persist between calls. For stateful workflows, prefer the dedicated browser tools or use frame_id routing. The web_extract tool is available for fetching CDP documentation URLs.",
+ "description": "Send a raw Chrome DevTools Protocol (CDP) command. Escape hatch for browser operations the other browser tools don't cover.\n\n**Requires a reachable CDP endpoint.** Available when the user has run '/browser connect' to attach to a running Chrome, Brave, Chromium, or Edge browser, or when 'browser.cdp_url' is set in config.yaml. Not currently wired up for cloud backends (Browserbase, Browser Use, Firecrawl) — those expose CDP per session but live-session routing is a follow-up. If the tool is in your toolset at all, a CDP endpoint is already reachable.\n\n**CDP method reference:** https://chromedevtools.github.io/devtools-protocol/ — use an available documentation lookup or extraction tool on a method's URL (e.g. '/tot/Page/#method-handleJavaScriptDialog') to look up parameters and return shape.\n\n**Common patterns:**\n- List tabs: method='Target.getTargets', params={}\n- Handle a native JS dialog: method='Page.handleJavaScriptDialog', params={'accept': true, 'promptText': ''}, target_id=<tabId>\n- Get all cookies: method='Network.getAllCookies', params={}\n- Eval in a specific tab: method='Runtime.evaluate', params={'expression': '...', 'returnByValue': true}, target_id=<tabId>\n- Set viewport for a tab: method='Emulation.setDeviceMetricsOverride', params={'width': 1280, 'height': 720, 'deviceScaleFactor': 1, 'mobile': false}, target_id=<tabId>\n\n**Usage rules:**\n- Browser-level methods (Target.*, Browser.*, Storage.*): omit target_id and frame_id.\n- Page-level methods (Page.*, Runtime.*, DOM.*, Emulation.*, Network.* scoped to a tab): pass target_id from Target.getTargets.\n- **Cross-origin iframe scope** (Runtime.evaluate inside an OOPIF, Page.* targeting a frame target, etc.): pass a frame_id from Page.getFrameTree. This routes through the CDP supervisor's live connection — the only reliable way on Browserbase where stateless CDP calls hit signed-URL expiry.\n- Each stateless call (without frame_id) is independent — sessions and event subscriptions do not persist between calls. For stateful workflows, prefer the dedicated browser tools or use frame_id routing. The web_extract tool is available for fetching CDP documentation URLs.",
"name": "browser_cdp",
"parameters": {
"properties": {