From c5c42df5976ed63faac2adcf3b04a4ad2f519b32 Mon Sep 17 00:00:00 2001 From: amankumarsingh77 Date: Wed, 8 Jul 2026 21:13:15 +0530 Subject: feat: add browser_web_search tool (real-Chrome SERP scrape, no API key) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thin query→ranked-links primitive. Isolated-attach tab lifecycle mirroring browser_open_urls (never touches the user's current tab); pure Google SERP parser with semantic (a h3) extraction and redirect unwrapping; CAPTCHA and no-results surfaced as invalid_state + details.reason. Fixture-based parser tests (9 scenarios). Establishes the isolated-tab lifecycle and tsx+fixture test convention that browser_read_page and deep-research build on. Co-Authored-By: Claude Opus 4.8 (1M context) --- test/deep-research/fixtures/google-serp-captcha.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/deep-research/fixtures/google-serp-captcha.json (limited to 'test/deep-research/fixtures/google-serp-captcha.json') diff --git a/test/deep-research/fixtures/google-serp-captcha.json b/test/deep-research/fixtures/google-serp-captcha.json new file mode 100644 index 0000000..7c6610f --- /dev/null +++ b/test/deep-research/fixtures/google-serp-captcha.json @@ -0,0 +1,4 @@ +{ + "anchors": [], + "pageText": "About this page Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests and not a robot. Why did this happen? To continue, please type the characters below. reCAPTCHA." +} -- cgit v1.2.3